Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: displaying date but also the time!


From   "Iwan Barankay" <I.Barankay@warwick.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: displaying date but also the time!
Date   Wed, 18 Dec 2002 11:01:57 +0000

Hi everyone,

I am at a loss on how to display dates that also contain the time of
day.

I converted data from Exel where an entry is the date but also the
time.
That is I had a variable 'datetod' with an entry like "11/04/2002 
08:00:00"
which converted into "15441.33333"
then I wanted to display it but Stata only let's me display the date
but not the time, i.e. I can only do 
format datetod %dD_m_Y
which then displays only as "11 Apr 02" (e.g. on graphs) but I would
like it to display as something like 
"11 Apr 02 08:00:00" that is also the time!

is there a way to do this?

A thousand thanks and have a nice end of year break (whatever the
time...),

Iwan

_________________________________

Iwan Barankay
Department of Economics
University of Warwick
Coventry CV4 7AL
U.K.
Tel.: **44 (0)2476524930
Fax.: **44 (0)2476523032
Email: I.Barankay@warwick.ac.uk
Web: http://www.warwick.ac.uk/~ecrhc

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