DriveWorks Pro 15: Year [send feedback...]

Year

This function returns the year component of the specified date/time value.

Syntax

  1. Year()
  2. Year([Value])

Value is the date/time from which to retrieve the year component.

If no value is specified, then it is equivalent to passing in Now().

Examples

RuleMeaning
Year()If this function is called on the 19th of October 2012, then it would return the value 2012.
Year(Now())If this function is called on the 19th of October 2012, then it would return the value 2012.
Year("2012-17-12")This will return 2012 from the given date value

Table of Contents