Change date format in Excel using number format
The easiest way to remove time from a date in Excel is to change the number format.
This does not remove the time from the timestamp - it just prevents it from displaying in your cell. If you use these cells in calculations, the time and date are still included.
To change the date format in Excel using number format:
- Open your Excel spreadsheet.
- Select the cell containing your timestamp.
- In the main menu, select the down arrow at the end of the Number Format box.
- Choose a date format.
After you change the format, the time will stop appearing in your cells.
If you click on one of the cells, the time format is still visible in the formula bar.
Change the date format in Excel using cell format
The above method only gives you two time/date options to choose from. If you want more control over how your data is displayed, you'll want to use the "Set CellFormat" method.
To change the date format in Excel using advanced cell formatting:
- Open your Excel spreadsheet.
- Select the cell or cells that contain your timestamp.
- Right-click and select Set CellFormat. Alternatively, you can use the shortcut Ctrl 1 on Windows or Cmd 1 on Mac.
- In the Numbers tab, click Date and select a date format that does not include time.
- Click "OK" to confirm.
The date is now displayed without the time, but if you click the cell, the time is still displayed in the formula bar.
Removing time from date using INT function
To completely remove time information, you can use the INT function. That's because timestamps are in decimal form. The number before the decimal point represents the date, and the number after the decimal point represents the time.
INT function deletes everything after the decimal point, removes time information but retains date information.
To remove time from a date using INT in Excel:
- Click on the cell where you want the edited date to appear.
- Enter=INT(
- Select the cell containing the timestamp (or type the cell reference manually).
- Type the last closing bracket and press Enter.
Your results will now show a time of 12:00 AM. This is because the cell is still Takes a format that displays the date and time. Since the time portion is now zero, it displays it as 12:00 AM.
To completely remove the time, follow the previous section Follow the steps in to change the date format to one that does not include the time.
Making the Change in Excel
Knowing how to remove time from a date in Excel can allow you to display exactly what you want of data.
You can provide more detailed date information by adding the month in Excel. If your timestamp displays as text, you can also convert the text to a date. In Excel, you can Cut text to remove unnecessary parts.
The above is the detailed content of How to remove time from date in Excel. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 Linux new version
SublimeText3 Linux latest version

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.