How to Reformat the Birthday Value

RapidIdentity Platform Documentation

Solution
Application
Content Type
Technical Documentation
Utilities & Services
ft:locale
en-US

How to reformat the format of the birthDate field in Studio.

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 ''
                }