Statalist


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

st: RE: Converting date/clock format to date format?


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Converting date/clock format to date format?
Date   Mon, 20 Jul 2009 14:21:07 +0100

You are correct. This is a basic question that can be answered by
reading the help. In addition to Martin Weiss' answers, the function
-dofc()- may be what you need. 

Nick 
[email protected] 

Miranda Kim

I want to merge two datasets together that both have a 'datereturn' 
variable.
They have different formats however. In one it is a %tc and in the other

%dD_m_Y.
Where it is %tc format I cannot convert it to a date format...
If I type
format datereturn %dD_m_Y
It displays: 1478563200000
I know this is probably very basic, bu I'd be very grateful for some
help...

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