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

st: RE: Truncating a date

From   "Nick Cox" <>
To   <>
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()-. 


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:

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