Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[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 <perez.jorge@ur.edu.co>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
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 <dgecon@gmail.com> 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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index