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

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

From   Gary Longton <>
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?

*   For searches and help try:

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