SoftadminUtil.PersonalIdentityNumber_DateOfBirth

 Show all Hide all

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

Supported input formats:
yyyymmddNNNN

Type: Scalar function
Area of use: General use

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)