Contents

dateOfBirth()

Reads the user’s date of birth from the HealthKit store as a date value.

Declaration

func dateOfBirth() throws -> Date

Mentioned in

Return Value

An NSDate object representing the user’s birthdate, or nil.

Discussion

If the user has not yet specified a birth date, or if the user has denied your app permission to read the birth date, this method returns nil.

See Also

Reading characteristic data