ADMIN_PersonalIdentityNumber_GetDateOfBirth

Deprecated. Don't use for new development and try to migrate existing uses.

Type: Scalar function

This function extracts the date of birth from a Swedish personal identity number (personnummer).

Supported input formats:
yyyymmddNNNN

Return value: datetime

Returns the date of birth. Invalid or incorrectly formatted personal identity numbers give a return value of null.

Parameters

@PersonalIdentityNumber mandatory varchar(8000)