Current date as decimal number
DATE1P, &DATE1P, DATE2P, &DATE2P, DATE3P, or &DATE3P can be used to generate a decimal number for the current date of the run.
Table 1 shows the form of the decimal number constant generated for each current date operand along with an example of the actual decimal number generated when the date of the run is June 21, 2005. yyyy represents the year, mm represents the month (01-12), dd represents the day (01-31) and ddd represents the day of the year (001-366).
Decimal
Numbers for Current DateFormat of Operand
|
Format of Constant | Example of Constant |
---|---|---|
DATE1P | +yyyymmdd | +20050621 |
DATE2P | +yyyymm | +200506 |
DATE3P | +yyyyddd | +2005172 |
Note: You can precede each of the operands in
the table with an & with identical results.