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

st: Truncating a date


From   Robin Newberry <wnewber@clemson.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: Truncating a date
Date   Tue, 2 Mar 2004 11:30:24 -0500

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")?
--
Robin
--------------------------------------------------------------
W. Robert Newberry, IV CIH, CHMM
Chief Environmental Health and Safety Officer
Clemson University

wnewber@clemson.edu ehs@clemson.edu
http://ehs.clemson.edu/
*
* 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