Skip to main content

Date and time functions

NameDescriptionSyntax
YEARReturns the year of the specified dateYEAR(date)
DATEReturns a date assembled from 3 numbersDATE(year, month, day)
DATEVALUEConverts a date entered in a regular format into a numberDATEVALUE(date)
EDATEReturns the date that is a certain number of months away from the start date as a numberEDATE(start_date, months)
DAYReturns the day of the specified dateDAY(date)
YEARFRACCalculates the number of years, including fractional years, between the dates as a decimal fractionYEARFRAC(start_date, end_date, [calculation_method])
EOMONTHReturns the last date of the month that is a certain number of months away from the start date as a numberEOMONTH(start_date, months)
MONTHReturns the month of the specified dateMONTH(date)
MINUTEReturns minutes from 0 to 59 of the specified timeMINUTE(time)
ISOWEEKNUMReturns the ISO week number of the year for the specified dateISOWEEKNUM(date)
DATEDIFCalculates the number of complete years, months, or days between two datesDATEDIF(start_date, end_date, unit)
TODAYReturns the current dateTODAY()
NOWReturns the current date and timeNOW()
HOURReturns hours from 0 to 23 of the specified timeHOUR(time)