Excel functions

Date & time functions

Excel stores every date as a whole number and every time as a fraction of a day. Date and time functions build dates (DATE, EDATE, EOMONTH), take them apart (YEAR, MONTH, WEEKDAY), measure the gap between two dates (DATEDIF, NETWORKDAYS) and count working days around weekends and holidays (WORKDAY).

Start with these

DATEBuilds a real Excel date from separate year, month and day numbers, rolling over extra months or days automatically.DATEDIFCounts the complete years, months or days between two dates — the classic way to calculate age or length of service.DAYReturns the day of the month (1 to 31) from a date.EDATEReturns the date that is a given number of months before or after a start date — ideal for contract ends, renewals and due dates.EOMONTHReturns the last day of the month a given number of months before or after a date — perfect for month-end due dates and reports.MONTHReturns the month number (1 for January to 12 for December) from a date.NETWORKDAYSCounts working days (Monday to Friday) between two dates, including both ends and optionally skipping a list of holidays.NOWReturns the current date and time, updating every time the worksheet recalculates.TODAYReturns today's date, updating automatically each day the workbook recalculates.WEEKDAYReturns the day of the week of a date as a number, e.g. 1 = Sunday to 7 = Saturday (the numbering is adjustable).WORKDAYReturns the date a given number of working days before or after a start date, skipping weekends and optional holidays.YEARReturns the four-digit year of a date, from 1900 to 9999.

All 25 date & time functions

Other categories

Lookup & referenceLogicalTextMath & trigStatisticalFinancialInformationDatabaseEngineeringCompatibilityWebCubeAI & Python