Info |
---|
|
This routine is available starting with SIL Engineā¢ 1.0. 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
numberNumber
...
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 | 10025 |
---|
showSpace | false |
---|
cql | label = "date_routines" and space = currentSpace ( ) |
---|
labels | datearray_routines |
---|
|