Date & time functions

The 25 date & time functions in Sheets, with the usual names, arguments and results.

FunctionWhat it doesSyntax
DATEexampleDate from parts (yyyy-mm-dd)DATE(year, month, day)
DATEDIFYears, months or days between two datesDATEDIF(start_date, end_date, unit)
DATEVALUEDate text as a serial numberDATEVALUE(date_text)
DAYDay of the month (1-31)DAY(date)
DAYSNumber of days between two datesDAYS(end_date, start_date)
DAYS360Days between dates on a 360-day yearDAYS360(start_date, end_date, [method])
EDATESame day N months before or after a dateEDATE(start_date, months)
EOMONTHexampleLast day of the month N months awayEOMONTH(start_date, months)
HOURHour of a time (0-23)HOUR(serial_number)
ISOWEEKNUMISO 8601 week number of a dateISOWEEKNUM(date)
MINUTEMinute of a time (0-59)MINUTE(serial_number)
MONTHexampleMonth of a date (1-12)MONTH(date)
NETWORKDAYSexampleWorking days between two datesNETWORKDAYS(start_date, end_date, [holidays])
NETWORKDAYS.INTLWorking days between dates, custom weekendNETWORKDAYS.INTL(start_date, end_date, [weekend], [holidays])
NOWCurrent date and timeNOW()
SECONDSecond of a time (0-59)SECOND(serial_number)
TIMETime of day from hours, minutes, secondsTIME(hour, minute, second)
TIMEVALUETime text as a fraction of a dayTIMEVALUE(time_text)
TODAYCurrent dateTODAY()
WEEKDAYDay of the week (1-7)WEEKDAY(date, [type])
WEEKNUMWeek number of a date in its yearWEEKNUM(serial_number, [return_type])
WORKDAYDate N working days before or after a dateWORKDAY(start_date, days, [holidays])
WORKDAY.INTLDate N working days away, custom weekendWORKDAY.INTL(start_date, days, [weekend], [holidays])
YEARexampleYear of a dateYEAR(date)
YEARFRACFraction of a year between two datesYEARFRAC(start_date, end_date, [basis])