How to create your own custom date format in Excel


Jason Morrell

Reading Time:
  minutes remaining

Have you ever wondered how to display dates in a way other than the standard dd/mm/yyyy format?

What about Wednesday, 2 December 2020?

Or just December 2020?

In addition to the standard date formats, you can create your own custom date formats to fit the purpose exactly. That's what thus post is about.

1.  Different ways of showing the date

When you think about the different ways you can display a date, there’s quite a few standard options. Here’s a sample:

  • 02/12/14
  • 2/12/14
  • 02/12/2014
  • 02 December 2014
  • 02-Dec-14

The safest way to type a date is to use slashes (/) as separators between day, month and year. When you do this, Excel will always convert to the default date format of 02/12/2014.

If you separate with dots (.), Excel doesn’t know what to do. Excel’s primary purpose is to crunch numbers and it thinks you have entered 2 decimal points

The results?

Excel converts your date to text. Which is okay if you simply want to display the date, but if you need it for a calculation, you’re out of luck.

2. Which date format is best?

That really comes down to the context in which the date is being used.

  • The shortest format is single digit day, single digit month and 2 digit year, e.g. 2/12/20.
  • The fullest format is full day name and number, full month name and 4 digit year, e.g. Tuesday 12 December 2020.
  • The format with the most consistent width (which is good if you want a column of dates to look neat and easy to read) is 2 digit day, short month and 2 digit year, e.g. 02-Dec–20.

The choice is yours.

We’ll come on to how to create a custom date format in a moment but first here’s how to …

3. Choose a standard date format

1.  Select the date cell(s).

2.  Press CTRL 1 (to display the Format Cells dialog).

3.  Click the Number tab, if necessary.

4.  The Date category should already be selected.

5.  Select a date format from the right hand list.

The Standard Date Formats

Figure 01: The Standard Date Formats

4. Custom date format: Get down with the cool kids!

You create a custom date format by using a system of placeholders.

1.  First, Select the date cell(s).

2.  Press CTRL 1 (to display the Format Cells dialog).

3.  Click the Number tab, if necessary.

4.  Select the Custom category.

5.  Enter your custom date format into the Type box, as described below.

Create your own custom date format using placeholders

Figure 02: Create your own custom date format using placeholders

There are 3 primary date placeholders -

  • d (day)
  • m (month) 
  • y (year)

but the magic happens in how you use them.

5. Placeholder Descriptions

  • d or dd - Day number (e.g. 5 or 05)
  • ddd - Short day name (e.g. Mon)
  • dddd - Full day name (e.g. Monday)
  • m or mm - Month number (e.g. 6 or 06)
  • mmm - Short month name (e.g. Sep)
  • mmmm - Full month name (e.g. September)
  • mmmmm - First letter of month name (i.e. J-D)
  • yy - Two digit year
  • yyyy - Four digit year
  • / - Inserts a slash character
  • - - Inserts a dash

Here’s some examples of date formats that you can create that do not appear in the regular list. All of these example use the date 2 Dec 2014.

  • d/m/yy - 2/12/20
  • dd/mm/yyyy - 02/12/2020
  • dddd, d mmmm yyyy - Tuesday, 2 December 2020
  • d mmmm yyyy (ddd) - 2 December 2020 (Tue)
  • dd-mmm-yy - 02-Dec–20
  • ddd - Tue
  • dddd - Tuesday
  • mmm - Dec
  • mmmm yyyy - December 2020

6. Create a formula to generate a custom date format

Any of the custom date formats mentioned previously can be used within a TEXT formula to convert an existing date (in whatever existing format) to your desired format.

Say, cell A1 contains the date 20/06/2020.

In a new cell type ...

=TEXT(A1, "dddd, dd mmmm yyyy")

This results in Saturday, 20 June 2020.

You can replace the placeholders within the quotes with anything you want.

7. What next?

Please feel free to post any questions you have into the comments below. And before you leave this page, I want to give you one quick little action item! 

ACTION ITEM: Comment below with ONE thing you picked up from this post and share how it has helped, or will help, you. It's good to share your successes because it encourages others and provides an instant boost.

Enjoy the rest of your day!

Jason Morrell blog signature
About Jason Morrell

About the author

Jason Morrell

Jason loves to simplify the hard stuff, cut the fluff and share what actually works. Things that make a difference. Things that slash hours from your daily work tasks. He runs a software training business in Queensland, Australia, lives on the Gold Coast with his wife and 4 kids and often talks about himself in the third person!


Office Legends Academy | Making Office Legends

Master Microsoft Office
in 30 days or less

more from

Office Mastery logo
Read More
SOS-Click: The Easy Automated Backup Tool For Home Users
Read More
6 Excel Templates to Help Organize Your Daily Activities
Read More
10 Ways Excel Consultants Can Help You Fully Leverage Your Business Spreadsheets
Read More
How to fix formulas: 21 Fatal Formula Fails (and how to avoid them)


    • No, sorry.

      To create a one-click date-formatting option, the easiest way is to record or write a short macro and attach the macro to a Quick Access Toolbar (QAT) icon.

    • Unfortunately, you cannot do this with a custom format. You have to manipulate it with a formula instead.

      For example, if A1 contains your date, your formula in B1 could be =UPPER(TEXT(A1, “ddmmmyyyy”))

      Sorry to be the bearer of bad news!

  • Thanks for this, I use the custom format to show only months in my charts that tracks the number of members in our association.

    • Thanks for your question Hailee. You can include any fixed item in your custom format by prefixing it with a backslash (\). For example to show 12:30 as 12H:30M use the custom format hh\H:mm\M. All the best. Jason

  • {"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}