Statalist


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

st: stringto date


From   "Rajesh Tharyan" <R.Tharyan@exeter.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: stringto date
Date   Fri, 30 Nov 2007 13:38:55 -0000

Hi all,


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?

Thanks
Rajesh

*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index