Excel Date Format

This is an overview:

Excel Date Format

Click here to enlarge this image.


Download Practice Workbook


The Date Format in Excel

Dates in Excel are stored as serial values, with each date represented by a consecutive number. The default date system in Excel for Windows is 1900, and for Mac, 1904.


Different Date Format Codes in Excel

Day Result Month Result Year Result
d 4 m 2 y 23
dd 04 mm 02 yy 23
ddd Tue mmm Feb yyy 2023
dddd Tuesday mmmm February yyyy 2023

How to Change Date Format in Excel

The dataset contains Festivities and Dates. The Date column is in General format.

Change it to Date format:

Dataset


1. Apply the Default Date Format in Excel

  • Go to the Home tab.
  • Click Number >> select one of the two default date formats: Short Date or Long Date.

Applying Default Date Format to convert to date format


2. Use the Format Cells Box to Change the Date Format

  • Select the data range.
  • Press Ctrl + 1 to go to Format Cells.
  • In Date category >> select a Type >> click OK.

Using Format Cells Box to convert to date format in Excel

Read More: How to Change Default Date Format from US to UK in Excel


3. Convert Text Values Representing Dates to Dates

  • Use the following formula:
=VALUE(C5)

Using VALUE function to convert to date format in Excel


4. Use the Find and Replace Feature to Change the Date Format

  • Select the data range >> press Ctrl + H.
  • Enter “-” in Find what and “/” in Replace with >> click Replace All.
Using Find and Replace Feature to change to Date format in Excel

Click to enlarge the image


5. Change the Date Format Using the Text to Columns Wizard in Excel

  • Select the data range >> go to the Data tab >> click Text to Columns.

Change Date Format Using Text to Columns Wizard in Excel

  • Click Next.

Convert Text to Columns Wizard - Step 1 of 3

  • Select the Delimiters or check Other and enter a delimiter >> click Next.

Convert Text to Columns Wizard - Step 2 of 3

  • Select Date in Column data format >> select a format (here, MDY) >>enter a cell reference in Destination >> click Finish.

10 Convert Text to Columns Wizard - Step 3 of 3

You will see the Date column separated into the Month, Day and Year columns.

Final output

Read More: How to Change Date Alignment in Excel


How to Convert the Date Format to Another Locale?

  • Open Format Cells by pressing Ctrl + 1.
  • Go to Date >> select a Location.
  • Click OK.

Converting Date Format to Another Locale


How to Create a Custom Date Format in Excel?

  • Open Format Cells by pressing Ctrl + 1 >>  go to Custom >> enter a date code in Type (here, ddd mmmm yy) >> click OK.

Creating Custom Date Format in Excel


How to Convert a Date to a Number in Excel?

1. Use the Format Cells Box

  • Select the data range >> press Ctrl + 1 to open Format Cells >> select General in Category >> click OK.

Using Format Cells Box


2. Convert a Date to a Number Using the Excel DATEVALUE Function

  • Use the following formula.
=DATEVALUE("1/1/2023")

Using Excel DATEVALUE Function


The Excel Date Format Is Not Working

Possible reasons:

  • The Cell is not wide enough: you will see Hash marks (####) instead of the value. To resize and autofit the cell, double-click the right border of the cell.
  • Negative values are formatted as date: you will see Hash marks (####):

Switch to the 1904 date system:

  • Go to File >> click Options >> go to the Advanced tab >> check Use 1904 date system >> click OK.

Using 1904 date system

 


Frequently Asked Questions

1. How to change the date format permanently in Excel?

Change the date format in the Control Panel:

Open the Control Panel in the Start menu >> click Clock and Region >> click Region >> click Additional Settings >> go to Time in Customize Format >> change the format >> click OK.

2. How to change a date to a text string in Excel?

Use the formula below with the TEXT function:

=TEXT(date,"yy-mm-dd")

Excel Date Format: Knowledge Hub


<< Go Back to Number Format | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Arin Islam
Arin Islam

Anowara Islam Arin, a graduate of Civil Engineering from Khulna University of Engineering & Technology, Bangladesh, serves as a technical content creator in the ExcelDemy project. Possessing a passion for innovation and critical thinking, she actively embraces challenges. Beyond her engineering background, Arin exhibits a keen interest in Excel, having authored numerous articles on Excel & VBA-related issues to simplify the experience for users facing obstacles in Excel. Besides, she is also interested in Advanced Excel,... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo