NET/MASTER Network Control Language (NCL) Reference Manual

DATE
Built-in Functions
4–36 106126 Tandem Computers Incorporated
DATE The DATE built-in function provides the current date in one of the specified formats.
DATE( [
format
] )
format
specifies the format in which the date is to be returned. If
format
is omitted, the
value N (normal) is assumed. Table 4-3 lists the formats that you can use. The
examples supplied assume that the current system date is 17-AUG-1994.
Table 4-3. Date Formats (DATE Built-in Function)
Format Meaning Description Output
A Absolute Number of days since 4713 BC. 2449582
B or 9 Base date Number of complete days since January 1, 0001.
This date is based on the Gregorian calendar
(even though this did not exist prior to 1582).
“Leap year” conventions are assumed.
728156
C Century Number of days (including today) since January 1
of this century.
34562
D Days Days expended in current year. 229
E European DD/MM/YY 17/08/94
J Julian YYDDD 94229
M Month Full month name. August
N Normal DD MMM YYYY (default value) 17 AUG 1994
O or 6 Ordered YY/MM/DD 94/08/17
S or 8 Sorted YYYYMMDD 19940817
U or 5 USA MM/DD/YY 08/17/94
W Weekday Day name Wednesday
1 YY.DDD 94.229
2 DAY DD-MON-YYYY WED 17-AUG-1994
3 DD-MON-YYYY 17-AUG-1994
4 DD/MM/YY 17/08/94
7 YYMMDD 940817
10 DD/MM/YYYY 17/08/1994
11 YYYY/MM/DD 1994/08/17