Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: For info: Find today's date

From   Allan Reese <[email protected]>
To   Stata distribution list <[email protected]>
Subject   st: For info: Find today's date
Date   Wed, 8 Oct 2003 18:27:12 +0100 (BST)

Tech-support kindly provided this answer to what seems to be likely to be
a widespread need.  The information was not obvious from searching the
help system for either "today" or "date".

Date: Tue, 07 Oct 2003 11:52:47 -0500
From: Stata Technical Support <[email protected]>

The commands to use the current system date or time is to type:

	. local sysdate = c(current_date)
	. local systime = c(current_time)

These functions can be found in the help under "creturn"

Thank you,

*   For searches and help try:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index