Year

Definition:

Year(date)

 

Description:

Return the year from a supplied date string.

 

Platforms:

All

 

Parameters:

date - required

String containing the date or date and time.

Supported formats for this parameter are the same as those supported by VBScript DateTime objects.

 

Returns:

int

The year value from the supplied date string, between 0 and 9999.

 

Notes:

If you want to use the current date and time, you can use the Now Method to obtain this in a suitable format for use within this Method.