YEAR function
Evaluates a date expression and returns the year value of that date, including the century, as an INTEGER value.
Syntax
date
datetime-expression
ExampleThis procedure uses the YEAR function to determine if an Order date is in this century or the next, and then uses a different display format for each:
See alsoADD-INTERVAL function, DATE function, DATE-FORMAT attribute, DATETIME function, DATETIME-TZ function, DAY function, ETIME function, INTERVAL function, ISO-DATE function, MONTH function, MTIME function, NOW function, TIME function, TIME-SOURCE attribute, TIMEZONE function, TODAY function, YEAR-OFFSET attribute
OpenEdge Release 10.2B
|