Year Function

  • Updated

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.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.