Statalist


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

st: converting elapsed days to date.


From   "Ashim Kapoor" <[email protected]>
To   [email protected]
Subject   st: converting elapsed days to date.
Date   Thu, 28 Aug 2008 12:17:25 +0530

Hello everyone,

I understand that if I have the month , day ,year I can do

gen stdate= mdy(month,day,year)

is there a way I can "reverse this" ie. given the elapsed days can I
figure out todays date in the format 20080828 for say today?

Thank you,
Ashim.
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index