This function returns the year component of the specified date/time value.
Year([Value])
Where:
Value is the date/time from which to retrieve the year component.
Rule | Meaning |
---|---|
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 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:
These are Rand and RandBetween.