@YEAR
— returns the
year (1601 through 9999) for the specified date. The date may be in
any input date format supported by this
plugin, and must be a valid date
within the supported range.
Syntax:
%@YEAR[
date,
infmt]
date | the date to examine; defaults to today’s date |
infmt | the input date format, used to interpret ambiguous dates |
• Incompatibility: In 4NT /
Take Command v10 and earlier, the native @YEAR
function will
return a two-digit year if the input date uses a two-digit year. I don’t
like this behavior, and choose not to replicate it. My @YEAR
will always return four digits.