Returns the year for a given Date or DateTime.
Syntax 1
|
Returns the year for a given Date or DateTime. |
|
Year() |
Syntax 2
|
Returns the year for a given Date or DateTime. |
|
Year(dateTime) |
|
Arguments: |
|
|
dateTime |
DateTime - A DateTime or Date. |
Remarks
- Example: Year("2005-1-28") returns 2005.
- Example: Year() returns the current year.
Comments
0 comments
Article is closed for comments.