I have a data set. The Variable 'date1' is supposed to be age in years but reported their birthday for the children: eg. 13/4 (13th April). Variable 'date2' is the date of registration (eg. 1/9/2016) in the hospital. So we need to find out the age of the child (either number of days or months). How ca we do that. An example of my data set with dataex is given below:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str4 date1 str9 date2 "13/4" "1/9/16" "13/4" "31/7/2014" "13/4" "7/6/14" end
0 Response to Help with dates
Post a Comment