@DOW[date[,format]] : Returns the first three characters of the English name of the day of the week for the specified date ("Mon", "Tue", "Wed", etc.). See date formats for information on acceptable date formats.
@DOW 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 |
Examples:
echo %@dow[01-01-1980]
Tue
echo %@dow[%_date]
Sun
See also: @IDOW.