How to modify a registration form with gender and date of birth options?

To get data in a usable format (ie: for emails) you must use Shopify’s Admin API to save this data to customer metafields.

Said another way, an app is required.

Either a private app that you build, or a pre-built solution such as Customer Fields.