You are viewing the documentation for Blueriq 17. Documentation for other versions is available in our documentation directory.

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

YEAR


This function returns the year of a date or dateTime value. The year is returned as a number in the range 1 - 9999.


Syntax

YEAR ( date | dateTime )



Inputs
  • date or dateTime - The date or dateTime value of which the year must be returned.


Return type

  • integer


Examples

ExpressionResultType
YEAR ( DATE ( 2015 , 01 , 01 ) )2015Integer
YEAR ( DATE ( 1978 , 04 , 11 ) )1978Integer


Back to Top



  • No labels