Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: how to show date on a graph title by citing the date local
From
Jorge Eduardo Pérez Pérez <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: how to show date on a graph title by citing the date local
Date
Fri, 4 Nov 2011 11:46:20 -0400
You need to store the date in the local with the proper format:
sysuse auto, clear
local date: di %td 15610
scatter price mpg, title(`date')
Or you can define the date local "on the go"
sysuse auto, clear
scatter price mpg, title(`: di %td 15610')
Hope this helps
_______________________
Jorge Eduardo Pérez Pérez
On Fri, Nov 4, 2011 at 11:09 AM, G. Dai <[email protected]> wrote:
> dear all,
> I have one question on displaying the desired format of date in the
> citation case.
> for example, to show the date of a tiem variable we can use
> format %td varname.
> However, how to this if I want show the date in a citation, say in
> the title of a graph. I tried
> title(" From dofc(`date1_local') to dofc(`date2_local') ")
> but this obviously failed. any suggestions?
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/statalist/faq
> * http://www.ats.ucla.edu/stat/stata/
>
>
>
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/