Date Format In Excel

What Is The Date Format In Excel?

The Date Format in Excel is a feature to display or enter dates in a dataset. We can format the dates in multiple ways – short or long, as per the requirement. The default Date Format in Excel is present in the “Control Panel” of the system. It is found in the “Number” group of the “Home” tab.

For example, in cell A1 the date is 01-01-2022, and we want to change the date to the Long Date.

Date Format in Excel Intro

Select cell A1 > go to the “Home” tab > go to the “Number” group > click on the “Number Format” drop-down > select the “Long Date” option.

Date Format in Excel Intro Example

The output is shown above. The short date is converted to a long date.

Key Takeaways
  • The Date Format in Excel helps to change the dates in desired formats, short or long.
  • The DATEVALUE formula converts the data into a number format.
  • We can identify the default date in Excel as it will have an “*” symbol at the start of the default date format.
  • “CTRL+1” is the shortcut key combination to open the “Format cells” window to customize the Date Format in Excel.
  • We cannot convert the dates before January 1, 1900, to text in excel because it will not read negative numbers and remain in the same format.

Code Of Date Format In Excel

We display the Code Of Date Format in Excel i as a day (d), month (m), and year (y). We will understand these three codes in detail.

  • The Day Format(d) –
CodeExplanationResult
dDay with Single Digit1
ddDay with Double Digit01
dddDay Short NameMon
ddddDay Full NameMonday
  • The Month Format(m)  –
CodeExplanationResult
mMonth with Single Digit1
mmMonth with Double Digit01
mmmMonth Short NameJan
mmmmMonth Full NameJanuary
  • The Year Format(y) –
CodeExplanationResult
yyYear with Double Digit22
yyyyYear with Full Digit2022


Excel VBA – All in One Courses Bundle (35+ Hours of Video Tutorials)

If you want to learn Excel and VBA professionally, then ​Excel VBA All in One Courses Bundle​ (35+ hours) is the perfect solution. Whether you’re a beginner or an experienced user, this bundle covers it all – from Basic Excel to Advanced Excel, Macros, Power Query, and VBA.

How To Change Date Format In Excel?

We can change the Date Format In Excel in multiple ways, namely,

  1. Apply Default Format of Long Date
  2. Short Date Format
  3. Change The Date Excel Format Using “Custom” Option.
  4. Apply Different Types of Customized Dates Format in Excel.
  5. Convert Text Values Representing Dates to Actual Dates.
  6. Change The Date Format Using The “Find and Replace” Box.
  7. The DATEVALUE formula converts the date into a number format.

#1 – Apply Default Format Of Long Date In Excel

We will Apply Default Format Of Long Date using the Long Date format technique.

In the table below, the data is,

  • Column A contains the Date.
Date Format in Excel Example 1

The steps to apply the Long Date format Excel technique are as follows:

1: Let us select cell A2.

Date Format in Excel Example 1.1

2: Then, go to the “Home” tab > go to the “Number” group > click on the “Number Format” drop-down > select the “Long Date” option.

Date Format in Excel Example 1.2

The output is shown below. The date is “Friday, June 17, 2022”.

Date Format in Excel Example 1.3

#2 – Short Date Format In Excel

We will change the format using the Short Date Format Excel technique.

In the table below, the data is,

  • Column A contains the Date.
Date Format in Excel Example 2

The steps to apply the Short Date Format Excel technique are as follows:

1: We will select cell A2.

Date Format in Excel Example 2.1

2: Now, go to the “Home” tab > go to the “Number” group > click on the “Number Format” drop-down > select the “Short Date” option.

Date Format in Excel Example 2.2

The output is shown below. The date is “17-06-2022”.

Date Format in Excel Example 1

#3 – Change The Date Excel Format Using “Custom” Option

We will Change The Date Excel Format Using “Custom” Option.

In the table below, the data is,

  • Column A contains the Date.
Date Format in Excel Example 3

The steps to apply the Short Date Format Excel technique are as follows:

1: Let us select cell range A2:A6.

Example 3.1

2: Now, go to the “Home” tab > go to the “Cells” group > click on the “Format” drop-down > select the “Format Cells…” option, as shown below.

Date Format in Excel Example 3.2

3: In the “Format Cells” window, select the “Number” bar > go to the “Category:” group on the left side > select the “Custom” option > go to the “Type:” group on the right side > click on the “dd-mmmm-yyyy” option or manually type in the “Type:” field, as shown below.

Example 3.3

4: Then, click on “OK”. The output is shown below.

Example 3.4

#4 – Apply Different Types Of Customized Dates Format In Excel

We will Apply Different Types Of Customized Dates Format In Excel as follows:

  • Format 1: dd-mm-yy
  • Format 2: dd-mm-yyy
  • Format 3: ddd-mmm-yyyy
  • Format 4: dddd-mmmm-yyyy

We will apply all the above formats to the following table.

  • Column A contains the Date.
Date Format in Excel Example 3
  • Format 1: dd-mm-yy

The steps to apply the Date Format using the “Custom” option technique are as follows:

1: First, select the cell range A2:A6.

Example 3.1

2: Next, select the “Home” tab > go to the “Cells” group > click on the “Format” drop-down > select the “Format Cells…” option, as shown below.

Date Format in Excel Example 3.2

3: In the “Format Cells” window, select the “Number” bar > go to the “Category:” group on the left side > select the “Custom” option à go to the “Type:” group on the right side > click on the “dd-mm-yy” option or manually type in the “Type:” field, as shown below.

Example 4.1

4: Finally, click on “OK”. The output is shown below.

Example 3.1
  • Format 2: dd-mm-yyy

The steps to apply the Date Format In Excel using the “Custom” option technique are as follows:

1: Let us select the cell range A2:A6.

Example 3.1

2: Next, go to the “Home” tab > go to the “Cells” group > click on the “Format” drop-down > select the “Format Cells…” option, as shown below.

Date Format in Excel Example 3.2

3: Select the “Number” bar, in the “Format Cells” window > go to the “Category:” group on the left side à select the “Custom” option à go to the “Type:” group on the right side > click on the “dd-mm-yyy” option or manually type in the “Type:” field, as shown below.

Example 4.2

4: Then, click on “OK”. The output is shown below.

Example 4.3
  • Format 3: ddd-mmm-yyyy

The steps to apply the Date Format using the “Custom” option technique are as follows:

1: We will select the cell range A2:A6.

Example 3.1

2: Go to the “Home” tab > go to the “Cells” group > click on the “Format” drop-down > select the “Format Cells…” option, as shown below.

Date Format in Excel Example 3.2

3: When the “Format Cells” window opens à select the “Number” bar à go to the “Category:” group on the left side à select the “Custom” option à go to the “Type:” group on the right side à click on the “ddd-mmm-yyy” option or manually type in the “Type:” field, as shown below.

Example 4.4

4: Press the “OK” button, we will get the following output.

Example 4.5
  • Format 4: dddd-mmmm-yyyy

The steps to apply the Date Format using the “Custom” option technique are as follows:

1: Select the cell range A2:A6.

Example 3.1

2: Next, go to the “Home” tab > go to the “Cells” group > click on the “Format” drop-down > select the “Format Cells…” option, as shown below.

Date Format in Excel Example 3.2

3: In the “Format Cells” window, select the “Number” bar > go to the “Category:” group on the left side > select the “Custom” option > go to the “Type:” group on the right side > click on the “dddd-mmmm-yyyy” option or manually type in the “Type:” field, as shown below.

Example 4.6

4: Press the “OK” button. The output is shown below.

Example 4.7

[Note: When we add the date formats manually in the “Custom” option, it gets saved in Excel. So, the next time we open Excel, we can select the formats instead of adding them again].

#5 – Convert Text Values Representing Dates To Actual Dates

We will Convert Text Values Representing Dates To Actual Dates.

In the table below, the data is,

  • Column A contains Date in Text Date Format.
Example 5

The steps to apply the Actual Date Format are as follows:

1: Let us select cell range A2:A6.

Example 5.1

2: Go to the “Home” tab > go to the “Number” group > click on the “Number Format” drop-down > select the “Long Date” option.

Example 5.2

The output is shown below. The dates get formatted to the Long Date Format Excel.

Example 5.3

#6 – Change The Date Format Using The “Find and Replace” Box

We will Change the Format Using The “Find and Replace” Box, where the technique replaces “-” with “/” in the Date Format In Excel.

In the table below, the data is,

  • Column A contains the Date.
Example 3.1

The steps to apply the Find and Replace technique on the Actual Date Format are as follows:

1: We will select cells A2:A6.

Example 3.1

2: Then, select the “Home” tab > go to the “Editing” group > click the “Find & Select” drop-down > select the “Find” option, as shown below.

Example 6

3: When the “Find and Replace” window pops up > enter the “-” symbol in the “Find what:” field and the “/” sign in the “Replace with:” field > click on the “Replace All” button.

Date Format in Excel Example 6.1

The output is shown below.

Date Format in Excel Example 6.2

Excel Date Format Not Working

The Date Format in Excel may not work for the following reasons,

  • The cell size is not wide enough for the entire entered date –

If we enter the date longer than the cell’s size, the date will appear as “#####”. The solution is to resize or manually increase the column width, as required.

  • The negative number is entered in Date format –

If we enter the date, which is the negative value, the date will appear as “#####”. The solution is to switch the 1904 date system from the “Excel Options” in the “File” tab or use the Excel TEXT function to display negative dates.

Frequently Asked Questions

What is the Default Date Format?


The default format is the set Date Format in Excel. We can view it as follows: select the “Home” tab > go to the “Cells” group > click on the “Format” drop-down > select the “Format Cells” option. The “Format Cells” window pops up, click the “Numbers” bar > go to the “Category” group on the left, and click on the “Date” option. In the “Type:” group, we will see the default date format with the “*” Asterisk sign, as shown in the following image.

The set default Date is,
14-03-2012
March 14 2012

FAQ 1

How to Convert Date Format in Excel?

We can convert Date Format into Excel in two methods as follows:

Method 1: Format Cells Dialog.

The step-by-step process to convert Date Format using the Format Cells Dialog box are:

1. Select the cell to be formatted, here, cell A2.
2. Select the “Home” tab à go to the “Cells” group à click on the “Format” drop-down à select the “Format Cells…” option. [Alternatively, press the shortcut keys “CTRL+1” to open the “Format Cells” window].
3. The “Format Cells” window pops up. Select the format in which we want to Convert the Date in Excel. In this case, we have selected the “General” format from the “Number” menu bar “Category” list.

FAQ 2

The output is shown below.

FAQ 2.1

Method 2: Excel DATEVALUE function

We can use the DATEVALUE() function to convert the Date Format in Excel.

The step-by-step process to convert Date Format in Excel using the DATEVALUE function are:

1.   Select cell A2 to apply the DATEVALUE function.
2.   Enter the DATEVALUE formula =DATEVALUE(“17-06-2022”) in cell A2.

FAQ 2.2

3. Press the “Enter” key. The output is ‘44729’, as shown below.

FAQ 2.3

Where to change the Date Format in Excel?


The step-by-step process to change the Date Format in Excel are,

1. Select the cell which has the date.
2. Select the “Home” tab > go to the “Cells” group > click on the “Format” drop-down > select the “Format Cells…” option
3. The “Format Cells” window pops up.
4. Select the “Number” bar > select the “Date” option from the “Category:” group > select the desired date format from the “Type:” group > click on “OK”.

FAQ 1

Download Template

This article must help understand Date Format in Excel, with its formula and examples. You can download the template here to use it instantly.

This has been a guide to Date Format In Excel. Here we change date formats, short date, long date, & custom dates with examples & downloadable excel template. You can learn more from the following articles –

Reader Interactions

Leave a Reply

Your email address will not be published. Required fields are marked *