Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
HealthKit.DateOfBirthComponents
Queries date of birth for user in components.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
HealthKit | 8.2 | ❌ No | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "HealthKit.DateOfBirthComponents" )
Parameters
none
Result
Returns date components or error.
Description
Queries date of birth for user in components.For iOS 10.0 or newer.
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" ) & ¶ & MBS( "HealthKit.DateOfBirthComponents" ) ]
See also
This function is free to use.
Created 25th April 2018, last changed 25th April 2018