<>
It appears that the mask for the date() function in version 9 was required to be
lower case.
gen dateval=date(event_date, "dmy")
And that this changed to upper case (for month, day, and year designation) with
the addition of time to Stata dates in version 10, with lower case m
representing minutes.
gen dateval=date(event_date, "DMY")
- Gary
Martin Weiss wrote:
<>
Lisa sent me her dataset privately, and Paul`s solution worked w/o a
hitch. She also revealed that she uses Stata Intercooled 9.1. Are there
significant differences with regard to date handling btw Stata 9 and 10?
HTH
Martin
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/