Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: RE: RE: stringto date


From   "Svend Juul" <[email protected]>
To   <[email protected]>
Subject   Re: st: RE: RE: RE: stringto date
Date   Fri, 30 Nov 2007 16:19:31 +0100

There was this exchange
 
Rajesh Tharyan:
The command gen adate=date(date,"dmy"), where date is a string variable
works fine in stata9. However, it generates missing values in stata10.
 
Nick Cox:
In Stata 10, try "DMY".  
 
Rajesh Tharyan:
Is there a good reference on how little things like this have changed
between version 9 and 10? 
 
Nick Cox:
I am not sure whether this is flagged anywhere. It's arisen
several times on the list since Stata 10. No one pays much 
attention until it bites them!  
 
-------------------------------------------------------------------
 
Get an overview of all changes from version 9 to 10 by:
 
  . help whatsnew9to10
 
This is a pretty long list. To see about current syntax for date
variables:
 
  . help date
 
This leads to a very large help file describing the new date_and_time
variables. It may be a bit overwhelming.
 
I think users would benefit from a shorter FAQ describing the changes
in date handling from version 9 to 10. 
 
Note that you can use version control to allow version 9 syntax:
 
  . version 9
  . gen adate=date(date,"dmy")
 
or
 
  . version 9: gen adate=date(date,"dmy")

 
Hope this helps
Svend
 
________________________________________________________ 
 
Svend Juul
Institut for Folkesundhed, Afdeling for Epidemiologi
(Institute of Public Health, Department of Epidemiology)
Vennelyst Boulevard 6 
DK-8000 Aarhus C,  Denmark 
Phone, work:  +45 8942 6090 
Phone, home:  +45 8693 7796 
Fax:          +45 8613 1580 
E-mail:       [email protected] 
_________________________________________________________ 

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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