Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: st: change default date base (1 jan 1960)
From
Nick Cox <[email protected]>
To
"'[email protected]'" <[email protected]>
Subject
RE: st: change default date base (1 jan 1960)
Date
Wed, 11 Jul 2012 11:40:13 +0100
Daily dates.
. di mdy(1,1,1900)
-21914
. di mdy(1,1,1960) - mdy(1,1,1900)
21914
As said, you may need to adjust slightly depending on exactly what you want, e.g. in your other stuff is 1 January 1900 day 0 or day 1?
Nick
[email protected]
Daniel Ciganda
Thanks Nick, but what exactly should I substract mdy(1,1,1900) from?
On Tue, Jul 10, 2012 at 3:45 PM, Nick Cox <[email protected]> wrote:
> Not as such. Just subtract mdy(1,1,1900) and if necessary adjust
> according to whether you want 1 Jan 1900 to be 0 or 1.
>
> On Tue, Jul 10, 2012 at 2:37 PM, Daniel Ciganda <[email protected]> wrote:
>
>> Is there a way to change the default origin date from 1st Jan 1960 to,
>> for example, 1st Jan 1900.
*
* 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/