Friends, hello.
From the partners API comes the date of birth of the user in the format DD.MM.YYYY or DD.MM (if the year of birth is hidden). Based on these data, you need to determine the age of the person.
Help with the function. Something like this would probably come up, but new Date () does not accept the date in DD.MM.YYYY format.
function get_current_age(date) { return ((new Date().getTime() - new Date(date)) / (24 * 3600 * 365.25 * 1000)) | 0; }