@DATE[date[,format]] : Returns the number of days since January 1, 1980 for the specified date. See date formats for information on acceptable date formats. Date must be between 1980-01-01 and 2099-12-31 (inclusive).
@DATE accepts an optional second parameter specifying the date format:
0 | default |
1 | USA (mm/dd/yy) |
2 | Europe (dd/mm/yy) |
3 | Japan (yy/mm/dd) |
4 | ISO (yyyy-mm-dd) |
5 | ISO 8601 yyyy-Www-d |
6 | ISO 8601 yyyy-ddd |
If you don't supply any argument(s), @DATE defaults to using the current date.
Examples:
echo %@date[01-01-2012]
11688
echo %@date[2012-01-01,4]
11688
echo %@date[%_date]
11814