20 Feb
2007
20 Feb
'07
1:15 a.m.
Dear Epidata team friends, I have two American date format variables. DOB is date of birth of baby and WDATE is date of weighing the baby for the growth monitoring.
I used to write the following statement to calculate the age in months in EPI6
Define age ### Let age=(WDATE DOB)/30.44
That does not work in EPI ANALYSIS
I tried the statement; Let age= (date(WDATE,mdy) - date(DOB,mdy))/30.44 The error message was; Data type mismatch
Please help.
Shavinder Singh