All Products
Search
Document Center

MaxCompute:GET_IDCARD_BIRTHDAY

Last Updated:Feb 21, 2024

The GET_IDCARD_BIRTHDAY function of MaxCompute checks the validity of the ID card and returns the date of birth based on the ID card number. This topic describes the syntax and parameters of the GET_IDCARD_BIRTHDAY function.

Syntax

get_idcard_birthday(<idcardno>)

Parameters

idcardno: required. A 15-digit or 18-digit ID card number of the STRING type. During calculation, the validity of the ID card is checked based on the province code and the last digit of the ID card number. If the check fails, the return value is null.

Return value

A value of the DATETIME type is returned. If the input parameter is set to null, the return value is null.

References