Statalist


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

st: RE: RE: RE: stringto date


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: RE: RE: stringto date
Date   Fri, 30 Nov 2007 14:46:21 -0000

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!  

Rajesh Tharyan

Is there a good reference on how little things like this have changed
between version 9 and 10? 

Nick Cox

No. 

In Stata 10, try "DMY".  

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.

The format of the date is 

. describe date

                     storage   display     value
variable name   type    format        label      variable label
------------------------------------------------------------------------
----
---
date            str10          %10s                   Date

is this because the variable is named date?

*
*   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