Hi CommCare Users,
I have a hidden value that calculates the age of subject depending on what date date of birth is entered by a health worker. Dates >= 01/01/1970 display the correct age but dates before that Unix time do no return the correct calculation. Consequently, the app flow is greatly affected. I used this formula to calculate age:
- Age in years: int((today() - date(/data/dob)) div 365.25)
If I enter DOB as for example 01/01/1965, the calculation is not displayed, could someone please help me out?
Thanks,
James