@MONTH |
|
@MONTH[date[,format]] : Returns the month number for the specified date (1-12). See date formats for information on acceptable date formats.
@MONTH 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) |
Examples:
echo %@month[01-01-1980]
echo %@month[%_date]