Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

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


HealthKit.DateOfBirth - HealthKit.FitzpatrickSkinType

💬 Ask a question or report a problem