TSpreadsheets often contain a combination of numbers, text, dates, and other data types. Each data type requires different treatment within functions.
Dates require their own set of specialized functions. They differ from regular numbers, requiring more care when used in formulas. You can sort them chronologically or subtract two points in time to find age or duration. You can also use the difference between days as multipliers in other calculations, such as determining bond interest. Date functions such as DAYS, MONTH, or WEEKDAY, to name a few, deal with issues specific to dates, such as extracting only the month number or returning the number of days in a month.
Contents
Date Validity
ℹ️ The easiest way to write a valid date is to use slashes, like 10/25/1999, instead of spelling it out as October 25, 1999.
Dates and times in Google Sheets work differently than numbers. Spreadsheets need help to figure out if a value is a date or time instead of just a string of other characters. Using the correct syntax is one key to getting your spreadsheet to recognize date values. To see if a date is valid, run it through the ISDATE function. The ISDATE function will return a TRUE if the date is valid or false if it is not.
Conditional Formatting
Conditional formatting is another method to determine if a date is valid. You can apply a rule that highlights cells if they contain valid dates using the Custom formula is option and using the ISDATE function.

Data Validation
Lastly, you can enforce the propriety of dates using data validation.

You can use data validation to force users to enter valid dates or give them a warning. This option can be found in the Data menu. Data validation can be useful when collaborating with several users.
TIMEDIF – Google Sheets Add-On
Calculate any duration in:
- Years
- Months
- Weeks
- Days
- Hours
- Minutes
- Seconds
- Milliseconds
Conclusion
Dates and times are often used in spreadsheets, and many functions are specialized for use with them. This article provides an overview of date and time functions in Google Sheets.
Related Articles
-
Show a Date as a Month Name – Google Sheets
Learn two methods to display your dates as the month’s name in your spreadsheet.
-
TYPE Function – Google Sheets
The TYPE function checks a cell and returns the data type as an integer. Several types of data are allowed in a Google Sheet, and knowing the type helps you understand how to use it. More specific functions are available to determine a cell’s data type, but they only return TRUE or FALSE. For example,…
-
Understanding Data Types in Google Sheets
Learn about the different types of data you can use in a spreadsheet.
-
DATEVALUE Function – Google Sheets
The DATEVALUE function accepts a date value in any valid format and returns it as a serial number. Spreadsheets store dates and times as serial numbers in Google Sheets, so they work in formulas (you can add March plus June). You can use the DATEVALUE function to prepare dates to be sorted, filtered, or used in formulas.…
-
Show the Day of the Week as Text – Google Sheets
This tutorial shows you two ways to display your dates as the day of the week in your spreadsheet. The default is to show the month, day, and year together. Therefore, you will have to make a few changes depending on the type of output you want. Grab a copy of this template to follow…