Is there any reason that -c(current_date)- can't
return the date as a Stata date value?
Even if one isn't using it to compare with a date
variable, one usually wants to reformat before using,
and converting to a date value is the easiest way
to proceed, eg,
local today=string(date("`c(current_date)'","DMY"),"%tdCCYY.NN.DD")
Just one line of code, but still a minor nusiance to
convert each time, and doubly so because one is converting
a Stata-supplied value to Stata-preferred format.
cheers,
Jeph
*
* 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/