YEAR_9999

Use the YEAR_9999 script function to extract the year from a given date. The year is returned as a four-digit number.

Syntax

YEAR_9999 ([Date Format:]Date)

Parameters

Example

The following script returns the value 2000:

:SET &YEAR# = YEAR_9999("DD.MM.YY:31.12.00")

See also:

seealso

Script Date and Time Functions

Date, Time and Period Formats in Scripts