Sub topic 3
Creating dates and times with DATE, TIME, TODAY and NOW
Assume you can enter formulas, use relative and absolute cell references, and change number formats from the Format menu. In this chapter, you will build date and time values instead of relying on text that merely looks like a date.
Build a date with DATE
Google Sheets stores a date as a serial number: a number representing a day in a calendar system. The displayed format hides that number. DATE creates a real date from separate year, month, and day numbers.
=DATE(2026, 11, 28)The result is a date value that Sheets can sort, subtract, compare, and use with other date functions. The formula does not depend on whether your spreadsheet displays dates as 11/28/2026, 28/11/2026, or 2026-11-28.
DATE also normalizes out-of-range values. For example, a day value of 32 moves into the following month. Even so, use ordinary calendar values when you want formulas to be easy to review.
To create the first day of the month containing the date in A2, use:
=DATE(YEAR(A2), MONTH(A2), 1)YEAR and MONTH extract parts of the existing date. DATE then combines them with day 1.
Build a time with TIME
A time is stored as a fraction of a day. For example, half a day represents 12 hours. Use TIME to create a time from hour, minute, and second values.
=TIME(14, 30, 0)This produces 2:30 PM when the cell uses a time format. To create a date-time, add a date and a time:
=DATE(2026, 11, 28) + TIME(14, 30, 0)The date supplies the whole-number day. The time supplies the fractional part.
Use TODAY and NOW
TODAY() returns the current date. NOW() returns the current date and time.
=TODAY()
=NOW()These functions take no arguments. They update when Sheets recalculates the spreadsheet, so they are useful for dashboards, aging calculations, and timestamps that should always represent the current moment. They are not permanent records of when a row was created. For a fixed entry time, paste a value rather than depending on NOW().
Your spreadsheet time zone affects the time returned by NOW(). Check it under File > Settings if the result does not match your local time.
Choose a display format
A correctly created value may look unexpected because its number format controls only the display. Select the cell and choose Format > Number, then select a date, time, or custom format.
Combine values from cells
Suppose A2 contains a year, B2 a month, C2 a day, and D2 an hour. You can construct a date-time like this:
=DATE(A2, B2, C2) + TIME(D2, 0, 0)If the result appears as a decimal, apply a date-time format. Do not wrap the formula in TEXT unless you specifically need text for a label, because text cannot be used as easily in date arithmetic.
Exercise
Write a formula that returns 9:15 AM on the date in cell A2.
Show answer
=A2+TIME(9,15,0)