powered by
Function computes for a given date the correct age in days.
getAgeInDays(currDate, birthDate)
Correct age at the specific date currDate in days
currDate
Reference date given as string of the format "yyyymmdd".
Birth date given as string of the format "yyyymmdd".
Sabine Zinn
getAgeInDays("20200826", "19800605")
Run the code above in your browser using DataLab