Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Current date and time listed in output


From   "David Elliott" <dcelliott@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Current date and time listed in output
Date   Sat, 27 May 2006 23:12:25 -0300

-help creturn-
c(current_date) returns the current date as a string in the format
       "dd Mon yyyy"
eg:
. di c(current_date)
27 May 2006

On 5/27/06, Robert A Yaffee <bob.yaffee@nyu.edu> wrote:
Hi,
  Does anyone know how I can get the current date and time to be
reported in the output of an rclass program that one has written?
  What is the function for reporting the current date and time
at which the program was run on Stata?
  Thanks in advance,
      Bob Yaffee


Robert A. Yaffee, Ph.D.
Research Professor
Shirley M. Ehrenkranz
School of Social Work
New York University

home address:
Apt 19-W
2100 Linwood Ave.
Fort Lee, NJ
07024-3171
Phone: 201-242-3824
Fax: 201-242-3825
yaffee@nyu.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/


--
David Elliott
*
*   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