Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: getting Stata to understand the format of the dates


From   Tzaloupas Dimitrov <tzaloupas1232@yahoo.gr>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: getting Stata to understand the format of the dates
Date   Tue, 5 Feb 2013 18:10:14 +0000 (GMT)

Dear all,
 
I have a column with this date format 
 
 
 dates
01/07/2009
01/08/2009
01/09/2009
01/10/2009
01/11/2009
01/12/2009
01/01/2010
01/02/2010
01/03/2010
01/04/2010
01/05/2010
01/06/2010
01/07/2010

 
HOw can i get stata understand that this is a time series data set of monthly observations?
 
I tried something like
 
gen edate1 = monthly(dates, "DMY")
 
but it seems that it does not work
 
Any suggestions?
 
I use 64 bit Stata 11
 
thanks

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index