Something like this, perhaps?
sysuse sp500, clear
keep in 1/45
su date
local min: di %tm mofd(r(min))
local max: di %tm mofd(r(max))
tw rarea hi lo d , ti(`min' to `max')
On 5/2/07, Ferry, Danielle (Exchange) <[email protected]> wrote:
Dear statalisters,
Is it possible to access the label associated w/ a time variable
formatted %tm? More specifically, I am generating a series of graphs
that use the most recent set of data (time period varies depending on
which variables I use), and I want to be able to display on the graph
the label that specifies which time the data refers to (i.e., "2007m2"
rather than "265").
Many thanks.
*
* 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/