Lists the specified date in several formats.
customize output format using text and/or predefined place holders; see the Remarks for a list of place holders default= '(YYYY)(DDD) = (DD) (SMON) (YYYY) = (YYYY)/(MM)/(DD)' |
The minimum date that can be listed is 1 January 1970. The maximum date is system dependent.
The FORM keyword lets you customize the output format. You can mix regular text with the predefined place holders listed below.
DATELIST
This entry lists the current day in the formats YYYYDDD, DD MON YYYY and YYYY/MM/DD.
DATELIST X 1
This entry lists tomorrow's date in the formats YYYYDDD, DD MON YYYY and YYYY/MM/DD.
DATELIST 97264
This entry lists day 264 of 1997 in the formats shown below.
1997264 = 21 Sep 1997 = 1997/09/21 |
DATELIST 2012/05/23
This entry lists 23 May 2012 in the formats shown below.
2012144 = 23 May 2012 = 2012/05/23 |
DATELIST 1/MAR/2004 -1
This entry lists the day before 1 March 2004 in the formats shown below.
2004060 = 29 Feb 2004 = 2004/02/29 |
DATELIST 1998365 FORM='The date is: (DOW) (SDOW) (DD) (DDD) (MM) (MON) (SMON) (YY) (YYYY)'
This entry lists 31 December 1998 in the formats shown below.
The date is: Thursday Thu 31 365 12 December Dec 98 1998 |