Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Re: Re: Re: dates in stata


From   Gary Longton <[email protected]>
To   [email protected]
Subject   Re: st: Re: Re: Re: dates in stata
Date   Tue, 31 Mar 2009 16:21:22 -0700

<>

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index