Date and time in Google Sheets: enter, format and convert dates and time in your sheet

Today we'll discuss what you can do with dates and time in a Google spreadsheet. Let's take a closer look at how you can enter date and time into your table, and how to format and convert them to numbers.

How to insert date and time in Google Sheets

Let's start by entering the date and time into a Google Sheets cell.

Tip. Date and time formats depend on the default locale of your spreadsheet. To change it, go to File > Settings. You'll see a pop-up window where you can set your region under the General tab > Locale. Thus, you'll ensure those date and time formats you're accustomed to.

There are three ways to insert date and time into your Google spreadsheet:

Add date and time manually

Note. No matter how you want the time look like at the end, you should always enter it with a colon. This is essential for Google Sheets to distinguish between time and numbers.

It may seem to be the easiest way but locale settings that I mentioned above play a vital role here. Every country has its own pattern for displaying date and time.

As you all know, the American date format differs from the European one. If you set "United States" as your locale and type in the date in the European format: dd/mm/yyyy, it simply won't work. The entered date will be treated as a textual value. So, pay attention to that.

Tip. You can add today's date much quicker. Type @ in the required cells and continue with the word today: See your prompt turn to today's date in Google Sheets.

Google Sheets will recognize your prompt and suggest you add Today's date. Click it, and your text will turn into today's date: Prompt appears as today's date in Google Sheets.

Confirm by pressing Enter.

Make Google Sheets auto-populate your column with date or time

Fill in a few cells with the required date/time/date time values.

Select these cells so you could see a small circle at the bottom right corner of the selection: Enter a few time units.

Click that circle and drag the selection down, covering all required cells.

You'll see how Google Sheets automatically populates those cells based on two samples you provided, retaining the intervals: Make Google Sheets enter time for you.

Use key combinations to insert current date and time

Place the cursor into the cell of interest and press one of the following shortcuts:

  • Ctrl+; (semicolon) to enter the current date.
  • Ctrl+Shift+; (semicolon) to enter the current time.
  • Ctrl+Alt+Shift+; (semicolon) to add both, current date and time.

Later you'll be able to edit the values. This method helps you bypass the problem of entering an incorrect date format.

Take advantage of Google Sheets date and time functions

TODAY() — returns the current date to a cell.

NOW() — returns the current date and time to a cell.

Note. These formulas will be recalculated, and the result will be renewed with every change made in the table.

Here you are: you've placed date and time to our cells. The next step is to format the information to display it the way you need it.

As it is with numbers, you can make your spreadsheet return date and time in various formats.

Place the cursor into the needed cell and go to Format > Number. You can choose between four different default formats or create a custom one using Custom date and time setting: Choose the existing date and time format or create a custom one in Google Sheets.

As a result, one and the same date looks different with various formats applied: One date – different number formats.

As you can see, depending on your needs, there are a few ways to set the date format. It allows displaying any date and time value, from a day to a millisecond.

Make your date/time a part of Data validation.

In case you need to use date or time in Data validation, proceed to Data > Data validation in the Google Sheets menu first:

  • As for dates, just set them as criteria and choose the option that suits you best: Date in Data validation.
  • As for time units, since they are absent from these settings by default, you will need to either create an additional column with time units and refer to this column with your Data validation criteria (List from a range), or enter time units directly to the criteria field (List of items) separating them by a comma: Time in Data validation.

Insert time to Google Sheets in a custom number format

Suppose you need to add time in minutes and seconds: 12 minutes, 50 seconds. Place the cursor to A2, type 12:50 and press Enter on your keyboard.

Note. No matter how you want the time to look like at the end, you should always enter it with a colon. This is essential for Google Sheets to distinguish between time and numbers.

What you'll see is Google Sheets treating your value as 12 hours 50 minutes. If you apply the Duration format to A2, it'll still show the time as 12:50:00.

So how can you make Google spreadsheet return only minutes and seconds?

  • Type 00:12:50 to your cell.

    To be honest, this one may turn out a tiresome process if you need to enter multiple timestamps with minutes and seconds only.

  • Type 12:50 to A2 cell and put the following formula into A3:

    =A2/60
    Then apply the Duration number format to A3. Otherwise, your table will always return 12 hours AM.

  • Use special formulas.

    Input minutes to A1, seconds — to B1. Enter the following formula to C1:

    =TIME(0,A2,B2)
    In order to delete excess symbols from our time, set the format again. Go to Custom date and time and create a format that will show only elapsed minutes and seconds: Custom time format.

    The TIME function refers to cells, takes the values and transforms them into hours (0), minutes (A1), and seconds (B1). Time formula.

Convert time to decimal in Google Sheets

Let's move on to various operations you can do with date and time in Google Sheets.

There may be cases when you need to display time as a decimal rather than "hh:mm:ss" to perform various calculations. Why? For example, to count per-hour salary, since you can't perform any arithmetic operations using both, numbers and time.

But the problem disappears if time is decimal.

Let's say column A contains the time you started working on some task and column B shows the end time. You want to know how much time it took, and for that, in column C you use the formula below:

=B2-A2

Copy the formula down cells C3:C5 and get the result in hours and minutes. Then transfer the values to column D using this formula:

=$C2

Then select entire column D and go to Format > Number > Number: The first steps of converting time to decimal.

Unfortunately, the result you'll get at first won't say much. But Google Sheets has a reason for that: it displays time as a part of a 24-hour period. In other words, 50 minutes is 0.034722 of 24 hours.

Of course, this result can be used in calculations.

But since we're used to seeing time in hours, you may want to introduce more calculations to your table. To be specific, multiply the number you've got by 24 (24 hours): Enter time as decimal.

Now you have a decimal value, where integer and fractional reflect the number of hours. To put it simply, 50 minutes is 0.8333 hours, while 1 hour 30 minutes is 1.5 hours.

Text-formatted dates to date format with Power Tools for Google Sheets

There's one quick solution for converting dates formatted as text to a date format. It's called Power Tools. Power Tools is an add-on for Google Sheets that allows you to convert your information in a couple of clicks:

  1. Get the add-on for your spreadsheets from Google Sheets webstore.
  2. Go to Extensions > Power Tools > Start to run the add-on and click the Convert tool icon on the add-on pane. Alternatively, you can pick the Tools > Convert tool right from the Power Tools menu.
  3. Select the range of cells that contain dates formatted as text.
  4. Check the box for the option Convert text to dates and click Run: Convert format on Google Sheets with Power Tools.

Your text-formatted dates will be formatted as dates in just a few seconds.

I hope you've learned something new today. If you have any questions left, feel free to ask them in the comments below.

Next time you'll learn how to calculate the time difference and sum dates and time together.

Table of contents

104 comments

  1. I am wanting to autofill the dates of a month in google sheets but I only want to have it autofill the dates for Mondays and Wednesdays. How do I do this?

  2. Hello Natalia,

    I am trying to create a formula where "IF Date is "Today" Then, "Due Today" type of statement.
    Additionally, "If Date is "Past Due" Then,"Assignment Overdue" ...

    Not sure exactly how to put this together or if it is possible.

    Im actually looking to insert this into a "Monday.com" formula box but this should also be universal with the formula structures in Google.

    Thanks in advance.

  3. I am trying to validate a complete date in google sheets, and have been using the "isDate()" function. However, it validates true even if the date is just a month/year although all the documentation I've seen says that it requires a month/day/year. Is there a way to validate that a cell and require the month, day and year? It seems that it just defaults to the first day of the month.

    Ex: Cell A1 contains "10/1929"
    =isDate(A1) returns true
    =Day(A1) returns 1

    • Hello Mitch,

      Google Sheets picks up dates written in different formats. Hence, you're right, it treats 10/1929 as October 1st, 1929. You'll see the same in the formula bar if you select the cell. I'm afraid this is a matter of the format visible to you which cannot be handled with formulas.

      However, you can try some kind of a workaround. For example, use the IF function to check if the Day from A1 equals 1. And if so, mark the date as potentially incomplete.

  4. how to insert drop down date and time in one chell

  5. I have a sheet with contacts from different time zones within the US. How can I show the time zone of each contact? is there a way to convert time to different time zone so I can have a single time for every contact?

    • Hello Nasir Khan,

      I'm afraid there are no standard functions to work with the time zones. You will have to add formulas that add the required amount of hours to show the same time zone for each contact.
      Alternatively, you can use scripts. You may try to find the solution here – an overview of Google Apps Script with a lot of helpful content and links: https://developers.google.com/apps-script/overview

  6. I am using google sheet and applying formula =IF(L2="Fully Consumed",TODAY(),""), it means that if condition is fulfilled in L2 Column i.e. "Fully Consumed" then Current Date should be in N2 columns, it is applying properly but Date is changed on daily basis as current date which should not be done, I want that date should be applied once then should not be changed as date changed. Is there any proper solution of my problem?

  7. Hello There,
    I need to enter the same date for 5 rows (2023-06-12) and then the next day for the next 5 rows (2023-06-13), etc, etc. The sheet is configured to follow date order when it is dragged down. I have tried manually adding about 15 rows (3 dates) and then dragging down, but it still converts backs to putting one day in each row. Please help! Thanks :)

    • Hello Susan,

      Here's what you can do:

      1. Fil your column (start with B2) with as many days as you need (one instance of each day: 2023-06-12, 2023-06-13, 2023-06-14, etc.). You can do it quickly with the standard dragging.
      2. Select the cells with days, press & hold Ctrl on your keyboard and drag everything to 4 columns to the right. You'll have 5 columns of the same day on each row.
      3. Enumerate each row in column A and each column in row 1 (1,2,3,4, etc).
      4. Select all the data (including the numbered headers and labels on the left) and use our Unpivot Table tool. It'll place all the dates just as you need.

      Use the dragging on steps 1-3 to speed up the process. It'll be much quicker than entering dates by groups one by one.

      • Thanks for answering so quickly, Unfortunately, this did not work the way I need it to. I ended up with just 3 coloumns on a new spreadsheet ( so all the other data was missing, and the dates ended up like this...
        2023-05-08
        2023-05-09
        2023-05-10
        2023-05-11
        2023-05-09
        2023-05-10
        2023-05-11
        2023-05-12
        2023-05-10

        where as I need.....
        2023-05-08
        2023-05-08
        2023-05-08
        2023-05-08
        2023-05-09
        2023-05-09
        2023-05-09
        2023-05-09
        2023-05-10

        Thanks!

        • Hello Susan,

          Please make sure you enumerate both columns & rows, and include these numbered labels into the Unpivot.
          You can send me the video illustrating what you do to support@ablebits.com (referring to this comment). I'll watch and suggest what may be going wrong.

  8. We need to input today's date using a tablet or phone, entering business incomes/transaction.
    On the computer ctrl+; works great, but how to do this on a tablet, iPad specifically?

  9. I WANT THE RESULT IN THE SPECIFIED CELL AFTER SPECIFIC TIME.

    HOW TO GET IT.

    MEANS,

    =A1+A2

    IS FORMULA WRITTEN IN A3 BUT THE RESULT IN A3 MUST BE VISIBLE SAY AFTER 5 MINUTES (SPECIFIC TIME AND NOT IMMEDIATLY. HOW TO GET IT??

    • Hello CHAKOR,

      I'm afraid it's impossible with the standard Google Sheets functions. You need to use a script for the task. Since we do not cover the programming area (script-related questions), I can suggest looking for a solution here – an overview of Google Apps Script with a lot of helpful content and links:
      https://developers.google.com/apps-script/overview

      I hope you’ll find this information helpful. Sorry I can't assist you better.

  10. This worked =TODAY()
    Thank you.

      • Hi what is the formula of this,? when inserting data in A1 the A2 automatic date and time that did not change when I open tom.. Because when I encode tom. the date and time is automatic update

  11. I am creating a spreadsheet for my online classmates.
    We are all over the world, and I am wondering if there is a way to have a cell show what time it is in each person's locale (updating itself every minute to the current time). Can I tell the cell to show current Eastern Standard time in one cell, and current Swedish time in another cell?

    • Hello kargelc,

      If you're in Eastern Standard Time, set this time zone in your spreadsheet settings first. Then =NOW() will show your current time.
      Swedish is located 5 hours away from EST. So use =NOW() + 5/24 to show Swedish time in another cell.

  12. Hello!
    I am looking to have a date pop into a separate column, when a checkbox is marked complete
    For example checkbox is in column C, i have completed my task and once i check the box, todays date would pop into Column E
    Thank you for your help!

    • Hello Wilfredo,

      You need to use the IF function along with TODAY. However, TODAY is a volatile function. It recalculates itself in all cells each time anything is edited somewhere on the sheet. There are a few workarounds to this:

      • You can manually turn new TODAY formulas into values. This way, you will prevent previous dates from changing.
      • Or you can manually enter the current date by pressing Ctrl + ; on your keyboard.
      • Or use scripts to solve the task. But since we don't help with scripts, you may try to find the solution here – an overview of Google Apps Script with a lot of helpful content and links: https://developers.google.com/apps-script/overview
  13. hi im new to google sheets, i have a lessons time table that has Period 1 through 5 along the top and the staff members down the side. i have entered the correct formula to have it colour coded so when a staff member puts in their data for eg; "Period 3" it automatically gives their cell the same colour assigned to that staff member etc.

    As each period passes throughout the day i manually highlight the vertical row (eg Period 1) and colour it out grey to show its unavailable to enter request in. My question is; is there a way to assign a time stamp to each assigned cells or rows so when that time has passed it automatically colours out the appropriate cells? so this would happen when I'm not able to get to my laptop.

  14. Hi!

    I would like to know if there is a formula that will retrieve the current date after new entry data on a row. I noticed that =TODAY() will change previous dates to the current one. Please advise and thank you!

    • Hi Carlos,

      I'm afraid TODAY is a volatile function. It recalculates itself in all cells each time anything is edited on the sheet. There are a few workarounds I can offer:

      1. You can manually turn new TODAY formulas into values. This way, you will prevent previous dates from changing.
      2. Or you can manually enter the current date by pressing Ctrl + ; on your keyboard.
      3. Or use scripts to solve the task. But since we don't help with scripts, you may try to find the solution here – an overview of Google Apps Script with a lot of helpful content and links: https://developers.google.com/apps-script/overview
  15. I collect requests via a form and results are populated into a response sheet. I would love to be able to have the request date one that I could simply click on and it would take me to the calendar with some of the information. Akin to clicking on a date in an email and it allows you to create an event with select info auto populated but at the least- it takes you to the cal and to the date and time. Can sheets not do this?

  16. I enter into Google Sheets a day and a month 15/12 and it automatically enters it in as 15/12/2022
    As I am entering projected dates we are starting to enter dates for Jan but it puts a 2022, is there any way when i type 15/1 it will add 2023 for a future date rather than automatically do 2022

  17. Hi! This is very helpful! Thanks! I'm new to GSheets. I wonder if you could help me with this. So my Google Forms response populates in a google sheet file. Every time I get a new response, the date and time gets recorded in Column A. I want to copy ONLY the DATES in column A to another column (say, column N). But I want the date to be automatically copied to column N every time a new response is recorded. So I don't have to manually do it. How can I do that? Does anyone know how? Many thanks!

    • Hi!

      Thank you for your nice feedback :)

      You will find ways to extract date unit or time unit from a date time cell in this blog post.

      However, please keep in mind that new answers from forms are always added as new rows to your Google spreadsheet (rather than to existing empty rows). This is the way form responses are collected. So if you choose formulas to get the date units, you will have to copy them to new rows manually. If you chose the add-on, you will have to run it for all newly added rows as well.

  18. ok so I am trying to create a hours tracking sheet.. the problem I am running into is how we log the hours..
    we log our time as 24/h:100/m. i cant find a way to get sheets to properly calculate the times if the sum is over 24..
    for example: if i start work at 18.00 (6pm) and finish at 04.91(4:54am) i get the correct time worked of 10.91
    but
    if i start work at 19.00 (7pm) and finish at 08.52 (8:31am) i get 15.02 when the correct time i need is 13.02
    =MAX((D7+E7-0.5)-12,0)
    its my understanding (very limited) that in order to use the input of time as a fraction i need to format the cells as numbers with 2 decimal places. how do i go about making work like a 24/h clock when calculating my hours worked in this case

    • Hello Douglas,

      Sorry, I'm unable to reproduce the numbers you mentioned. For me to be able to help you better, please share a small sample spreadsheet with us (support@apps4gs.com) with 2 sheets: (1) a copy of your source data (2) the result you expect to get. I kindly ask you to shorten the tables to 10-20 rows.
      Note. We keep that Google account for file sharing only and don't monitor its Inbox. Please do not email there. Once you share the file, just confirm by replying to this comment.

      I'll look into it and try my best to help.

  19. We haev been running the below script for some time for out logistics department. When they enter the phone number (column 9) and name of the driver (column 10), the time is automatically populated in Column eye, it just stopped working all together and nothing was changed...maybe someone can help:

    {
    var masterCell = masterSheet.getActiveCell();
    if (ss1.getName() == "SHIPPING LOG")
    {
    if (ss1.getRange(r.getRow(),9).getValue() == "")
    {
    if (ss1.getRange(r.getRow(),11).getValue() != "" || ss1.getRange(r.getRow(),12).getValue() != "")
    {
    ss1.getRange('I'+r.getRow()).setValue(time);
    //ss1.getSheetByName(helperSheetName).getRange('I'+r.getRow()).setValue(time);
    //helperCell.setValue(ss.getRange('I'+r.getRow()).setValue(time));
    }
    // helperCell.setValue(newValue);
    }
    else if (ss1.getRange(r.getRow(),11).getValue() == "" && ss1.getRange(r.getRow(),12).getValue() == "")
    {
    ss1.getRange('I'+r.getRow()).setValue('');
    }
    }

  20. Hi, can I customize datetime format without having to create temporary cells?

    To clarify, I have this function which grab the datetime in text format from other sheets.
    =INDEX(
    IMPORTRANGE("https://docs.google.com/spreadsheets/d/123abs", "sheets!B:B"),
    MATCH($A3,IMPORTRANGE("https://docs.google.com/spreadsheets/d/https://docs.google.com/spreadsheets/d/123abs", "sheets!A:A"), 0),
    1
    )

    The output is something like 100/10/10, which is y/m/d format of where I'm from. I know how to create 3 seperate columns to customize my datetime format but could this be done in place?

    • Hi Cookie,

      You don't need to create temporary cells, you just need to select this cell with 100/10/10 and change its format via the Format > Number menu.
      If this doesn't work for you or it's not what you mean, please give me more details (examples maybe) regarding your source data returned by your formula and the desired outcome.

Post a comment



Thank you for your comment!
When posting a question, please be very clear and concise. This will help us provide a quick and relevant solution to
your query. We cannot guarantee that we will answer every question, but we'll do our best :)