Statalist


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

RE: st: date and time


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: date and time
Date   Sun, 14 Oct 2007 22:03:24 +0100

Consider -ntimeofday- and -stimeofday- from Stata Journal 6(1) 2006. 

Nick 
n.j.cox@durham.ac.uk 

Ali Khashan
 
> Thanks Maarten, I am still using Stata 8. Is there a code in stata 8?
 
Maarten buis

> > --- Ali Khashan <Ali.Khashan@postgrad.manchester.ac.uk> wrote:

> >> I want to format a date variable.
> >> I tried these codes:
> >> gen nDate=date(sDate, "dm19y")
> >> format nDate %dD_m_CY
> >>
> >> However they did not work and then I realised that the 
> dates included
> >> time
> >> "03/02/2005 00:00".
> >>
> >> Is there a stata code which can deal with this date?
> >
> > Yes, this was introduced in Stata 10, see: -help date and time-.

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