Command Reference : Function Reference : Function Reference: D
  
 
@date
Date number of observation.
Syntax: @date
Return: series
Returns the date number associated with each observation in the workfile.
The date number associated with an observation is the first (smallest) date number corresponding to the observation date interval.
Examples
series dt = @date
saves the date numbers into the series DT. The default display format for these numbers will match the workfile frequency, but you may work with and display the series values as numbers.
alpha dts_1 = @datestr(@date,"yyyy:q")
alpha dts_2 = @strdate("yyyy:q")
Create two string series with the observation dates formatted in “yyyy:q” format.
Cross-references
See “Date Numbers” and “Date Formats”.
See also @enddate, @datestr and @strdate.