Statalist


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

st: Using dates


From   Linn Renée Naper <linn.naper@ecgroup.no>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: Using dates
Date   Wed, 15 Apr 2009 15:38:37 +0200

Hi
I work with sdv-files where I have a variable displaying dates.

The date is reported as 20090102 etc (January 2nd 2009).
And the variable has storage type str19 and display format is %19s.

My question is how I should make Stata read this as a date, and moreover being able to generate additional variables indicating week day, week number, month and year from this variable.

Thanks
Linn

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



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