Documentation Index

Fetch the complete documentation index at: https://help.rapididentity.com/llms.txt

Use this file to discover all available pages before exploring further.

Reformat the Birthday

Prev Next

How to Reformat the Birthday Value

The OneRoster standard format for birthDate is yyy-mm-dd. Use the following expression to reformat the a user's birthdate based on a target application's specific need

function() {
    const bday = SRC.birthDate[0];

    if (bday && typeof bday === 'string') {
        const bdaySplit = bday.split('-');

        return bdaySplit[1] + '/' + bdaySplit[2] + '/' + bdaySplit[0];
    }

    return ''
}