Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: display minutes and seconds?


From   Ulrich Kohler <[email protected]>
To   [email protected]
Subject   Re: st: display minutes and seconds?
Date   Wed, 25 Aug 2010 19:20:04 +0200

Am Mittwoch, den 25.08.2010, 13:00 -0400 schrieb B. Timothy Walsh:
> I've read in some dates/times, and would like to be able to see not only 
> month-date-year, but also hours:minutes:seconds. I think I can see how to 
> extract these if I want to compose a string, but it would be useful to see 
> such details in the data editor. Is there a way to format? (In looking for 
> a solution, I'm starting to think not.)
> I'm a novice STATA user, running STATA-11.


. gen t = tc(15jun2004 12:00:00)
. format %tc t
. list t
. edit t
. browse t

See - help dates_and_times##formatting- for other ways to format dates
and times.

Uli


*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index