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" <[email protected]>
To   <[email protected]>
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

I converted data from Exel where an entry is the date but also the
That is I had a variable 'datetod' with an entry like "11/04/2002 
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



Iwan Barankay
Department of Economics
University of Warwick
Coventry CV4 7AL
Tel.: **44 (0)2476524930
Fax.: **44 (0)2476523032
Email: [email protected]

*   For searches and help try:

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