Show/Hide Toolbars

Take Command / TCC Help v. 22

@YEAR[date[,format]]:  Returns the year for the specified date. See date formats for valid formats.

 

@YEAR 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)
5ISO 8601 yyyy-Www-d
6ISO 8601 yyyy-ddd

 

Example:

 

echo %@year[5-5-2012,1]

2012