DriveWorks Pro 16: 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

Volatile Functions

Volatile functions constantly change value whenever they are calculated.

Do not use any volatile function in the File Name rule or Path rule for any item created by DriveWorks.

Volatile functions include:

Table of Contents