Date and Time Functions

Date and Time Functions in Excel

Date and Time are stored as numbers in Excel. If you are new to this concept, Read the following article before going into Date and Time functions.

Date and Time in Excel

To analyze and perform calculations with date and time Excel has the following Date and Time functions.

For Current Time and Date

TODAYReturns today’s date
NOWReturns the current date & time

Create Dates & Times from different values

DATEReturns a date, from a user-supplied year, month and day
TIMEReturns a time, from a user-supplied hour, minute and second
DATEVALUEConverts a text string showing a date, to an integer that represents the date in Excel’s date-time code
TIMEVALUEConverts a text string showing a time, to a decimal that represents the time in Excel

Extract components of a Date

DAYReturns the day (of the month) from a user-supplied date
MONTHReturns the month from a user-supplied date
YEARReturns the year from a user-supplied date
WEEKNUMReturns an integer representing the week number (from 1 to 53) of the year from a user-supplied date
WEEKDAYReturns an integer representing the day of the week for a supplied date
ISOWEEKNUMReturns the ISO week number of the year for a given date

Extract components of a Time

HOURReturns the hour part of a user-supplied time
MINUTEReturns the minute part of a user-supplied time
SECONDReturns the seconds part of a user-supplied time

Extract components of a Time

EDATEReturns a date that is the specified number of months before or after an initial supplied start date
EOMONTHReturns a date that is the last day of the month which is a specified number of months before or after an initial supplied start date
WORKDAYReturns a date that is a supplied number of working days (excluding weekends & holidays) ahead of a given start date
WORKDAY.INTLReturns a date that is a supplied number of working days (excluding weekends & holidays) ahead of a given start date, using supplied parameters to specify weekend days
DAYSCalculates the number of days between 2 dates
DAYS360Calculates the number of days between 2 dates, based on a 360-day year
NETWORKDAYSReturns the number of whole networkdays (excluding weekends & holidays), between two supplied dates
NETWORKDAYS.INTLReturns the number of whole networkdays (excluding weekends & holidays), between two supplied dates, using parameters to specify weekend days
YEARFRACCalculates the fraction of the year represented by the number of whole days between two dates

Date and Time in Excel


Read more on similar functions

TODAY Function

UNIQUE function

SORT function

SEQUENCE function

SORTBY function

RANDARRAY function

Leave a Reply

Your email address will not be published.Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.