...
Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | year(date) | Package | | Alias | | Pkg Usage | | |
Description
Excerpt |
---|
|
Returns the year of the provided date. |
Returns the year of the provided date.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
date | Date | Yes | Specifies a Date or a DateTime expression. | |
Return Type
Number
Examples
Example 1
Code Block |
---|
|
print("Year is " + year(currentDate())); |
Example 2
Code Block |
---|
|
date varDateTime = "2011-08-17T18:30:55";
print("Year is " + year(varDateTime)); |
Print Year is 2011.
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "date_routine" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|