10.4 C
London
Sunday, May 19, 2024
HomeSoftware TutorialsExcelHow to Remove Time from Date in Excel (With Example)

How to Remove Time from Date in Excel (With Example)

Related stories

Learn About Opening an Automobile Repair Shop in India

Starting a car repair shop is quite a good...

Unlocking the Power: Embracing the Benefits of Tax-Free Investing

  Unlocking the Power: Embracing the Benefits of Tax-Free Investing For...

Income Splitting in Canada for 2023

  Income Splitting in Canada for 2023 The federal government’s expanded...

Can I Deduct Home Office Expenses on my Tax Return 2023?

Can I Deduct Home Office Expenses on my Tax...

Canadian Tax – Personal Tax Deadline 2022

  Canadian Tax – Personal Tax Deadline 2022 Resources and Tools...

You can use the following formula to remove the time from a date with a time in Excel:

=TEXT(DATEVALUE(TEXT(A2,"mm/dd/yyyy")),"mm/dd/yyyy")

This particular formula will remove the time from the date and time in cell A2.

For example, if cell A2 contains 1/5/2023 6:12 AM then this formula will convert it to 1/5/2023.

The following example shows how to use this formula in practice.

Example: Remove Time from Date in Excel

Suppose we have the following list of date and times in Excel:

To remove the time from the cell in A2, we can type the following formula into cell B2:

=TEXT(DATEVALUE(TEXT(A2,"mm/dd/yyyy")),"mm/dd/yyyy")

We can then drag and fill this formula down to each remaining cell in column B:

Excel remove time from date

Notice that column B now displays each date in column A without the time.

Also note that the formula mm/dd/yyy tells Excel to display each month with two digits, e.g. display 01 instead of 1.

If you would only like to display one digit for the month, you can instead use m/dd/yyy as follows:

=TEXT(DATEVALUE(TEXT(A2,"mm/dd/yyyy")),"m/dd/yyyy")

The following screenshot shows how to use this formula in practice:

Notice that column B now only displays each month with one digit.

Note: Months that have two digits will still be displayed with two digits.

Additional Resources

The following tutorials explain how to perform other common operations in Excel:

How to Convert Time Duration to Minutes in Excel
How to Convert Date to Month and Year in Excel
How to Add Months to Date in Excel

Subscribe

- Never miss a story with notifications

- Gain full access to our premium content

- Browse free from up to 5 devices at once

Latest stories