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

st: RE: Truncating a date


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Truncating a date
Date   Tue, 2 Mar 2004 16:41:38 -0000

You could do that, but you don't need to. Use
the -format()- suboption of -xlabel()- or -ylabel()-. 

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

Robin Newberry
 
> I want to take a date (in DD/MM/YYYY format) and shorten it to just 
> MM/YY for graphing purposes. Can I just create a new date variable 
> and format it to just MM/YY (using "format %dD/Y")?

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