HealthKit.DateOfBirth
---------------------

Queries date of birth for user.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [HealthKit](component_HealthKit.md) | [8.2](newinversion82.md) | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "HealthKit.DateOfBirth" ) ### Parameters

none

### Result

Returns date or error.

### Description

Queries date of birth for user.  
Returns the user's date of birth in the Gregorian calendar.  
Before calling this method, the application should request authorization to access objects with the DateOfBirth type.  
### Examples

Show date of birth as date and components:

 Show Custom Dialog \[ "Date of Birth" ; MBS ( "HealthKit.DateOfBirth" ) &amp; ¶ &amp; MBS ( "[HealthKit.DateOfBirthComponents](HealthKitDateOfBirthComponents.md)" ) \]  
### See also

- [HealthKit.DateOfBirthComponents](HealthKitDateOfBirthComponents.md)

This function is free to use.

Created 25th April 2018 , last changed 25th April 2018

  
[HealthKit.BloodType](HealthKitBloodType.md) - [HealthKit.DateOfBirthComponents](HealthKitDateOfBirthComponents.md)

[HTML Version](HealthKitDateOfBirth.shtml)