|
This Function returns a <string>, which is the year of the specified Date.
Parameters
| Source Date <string> |
| |
Date to get the year from. This parameter must be in format YYYYMMDD.
|
| |
|
Year Format <numeric>
|
| |
Format of the value to return.
The possible values for this parameter are:
| |
2 |
|
– |
|
YY. |
| |
4 |
|
– |
|
YYYY. |
|
|
|
Example 1
|
|
Example 2 |
Year("20100301", 2)
Result = 10 |
|
Year("20100301", 4)
Result = 2010 |
Updated: 3/21/2018 4:34 PM |