Format a date the way you want (2024)

Excel

Formulas and functions

More functions

More functions

Format a date the way you want

Excel for Microsoft 365 Excel for Microsoft 365 for Mac Excel for the web Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2019 for Mac Excel 2016 More...Less

WindowsmacOSWeb

When you enter some text into a cell such as "2/2", Excel assumes that this is a date and formats it according to the defaultdate setting in Control Panel. Excel might format it as "2-Feb". If you change your date setting in Control Panel, the default date format in Excel will change accordingly. If you don’t like the default date format, you can choose anotherdate format in Excel, such as "February 2, 2012" or "2/2/12". You can also create your own custom format in Excel desktop.

Follow these steps:

  1. Select the cells you want to format.

  2. Press CTRL+1.

  3. In the Format Cells box, click the Number tab.

  4. In the Category list, click Date.

    Format a date the way you want (1)

  5. Under Type, pick a date format. Your format will preview in the Sample box with the first date in your data.

    Note:Date formats that begin with an asterisk (*) will change if you change the regional date and time settings in Control Panel. Formats without an asterisk won’t change.

  6. If you want to use a date format according to how another language displays dates, choose the language in Locale (location).

Tip:Do you have numbers showing up in your cells as #####? It's likely that your cell isn’t wide enough to show the whole number. Try double-clicking the right border of the column that contains the cells with #####. This will resize the column to fit the number. You can also drag the right border of the column to make it any size you want.

If you want to use a format that isn’t in the Type box, you can create your own. The easiest way to do this is to start from a format this is close to what you want.

  1. Select the cells you want to format.

  2. Press CTRL+1.

  3. In the Format Cells box, click the Number tab.

  4. In the Category list, click Date, and then choose a date format you want in Type. You can adjust this format in the last step below.

    Format a date the way you want (2)
  5. Go back to the Category list, and choose Custom. Under Type, you’ll see the format code for the date format you chose in the previous step. The built-in date format can’t be changed, so don’t worry about messing it up. The changes you make will only apply to the custom format you’re creating.

  6. In the Type box, make the changes you want using code from the table below.

To display

Use this code

Months as 1–12

m

Months as 01–12

mm

Months as Jan–Dec

mmm

Months as January–December

mmmm

Months as the first letter of the month

mmmmm

Days as 1–31

d

Days as 01–31

dd

Days as Sun–Sat

ddd

Days as Sunday–Saturday

dddd

Years as 00–99

yy

Years as 1900–9999

yyyy

If you’re modifying a format that includes time values, and you use "m" immediately after the "h" or "hh" code or immediately before the "ss" code, Excel displays minutes instead of the month.

  • To quickly use the default date format, click the cell with the date, and then press CTRL+SHIFT+#.

  • If a cell displays ##### after you apply date formatting to it, the cell probably isn’t wide enough to show the whole number. Try double-clicking the right border of the column that contains the cells with #####. This will resize the column to fit the number. You can also drag the right border of the column to make it any size you want.

  • To quickly enter the current date in your worksheet, select any empty cell, press CTRL+; (semicolon), and then press ENTER, if necessary.

  • To enter a date that will update to the current date each time you reopen a worksheet or recalculate a formula, type =TODAY() in an empty cell, and then press ENTER.

When you enter some text into a cell such as "2/2", Excel assumes that this is a date and formats it according to the defaultdate setting in Control Panel. Excel might format it as "2-Feb". If you change your date setting in Control Panel, the default date format in Excel will change accordingly. If you don’t like the default date format, you can choose anotherdate format in Excel, such as "February 2, 2012" or "2/2/12". You can also create your own custom format in Excel desktop.

Follow these steps:

  1. Select the cells you want to format.

  2. Press Control+1 or Command+1.

  3. In the Format Cells box, click the Number tab.

  4. In the Category list, click Date.

    Format a date the way you want (3)

  5. Under Type, pick a date format. Your format will preview in the Sample box with the first date in your data.

    Note:Date formats that begin with an asterisk (*) will change if you change the regional date and time settings in Control Panel. Formats without an asterisk won’t change.

  6. If you want to use a date format according to how another language displays dates, choose the language in Locale (location).

Tip:Do you have numbers showing up in your cells as #####? It's likely that your cell isn’t wide enough to show the whole number. Try double-clicking the right border of the column that contains the cells with #####. This will resize the column to fit the number. You can also drag the right border of the column to make it any size you want.

If you want to use a format that isn’t in the Type box, you can create your own. The easiest way to do this is to start from a format this is close to what you want.

  1. Select the cells you want to format.

  2. Press Control+1 or Command+1.

  3. In the Format Cells box, click the Number tab.

  4. In the Category list, click Date, and then choose a date format you want in Type. You can adjust this format in the last step below.

    Format a date the way you want (4)
  5. Go back to the Category list, and choose Custom. Under Type, you’ll see the format code for the date format you chose in the previous step. The built-in date format can’t be changed, so don’t worry about messing it up. The changes you make will only apply to the custom format you’re creating.

  6. In the Type box, make the changes you want using code from the table below.

To display

Use this code

Months as 1–12

m

Months as 01–12

mm

Months as Jan–Dec

mmm

Months as January–December

mmmm

Months as the first letter of the month

mmmmm

Days as 1–31

d

Days as 01–31

dd

Days as Sun–Sat

ddd

Days as Sunday–Saturday

dddd

Years as 00–99

yy

Years as 1900–9999

yyyy

If you’re modifying a format that includes time values, and you use "m" immediately after the "h" or "hh" code or immediately before the "ss" code, Excel displays minutes instead of the month.

  • To quickly use the default date format, click the cell with the date, and then press CTRL+SHIFT+#.

  • If a cell displays ##### after you apply date formatting to it, the cell probably isn’t wide enough to show the whole number. Try double-clicking the right border of the column that contains the cells with #####. This will resize the column to fit the number. You can also drag the right border of the column to make it any size you want.

  • To quickly enter the current date in your worksheet, select any empty cell, press CTRL+; (semicolon), and then press ENTER, if necessary.

  • To enter a date that will update to the current date each time you reopen a worksheet or recalculate a formula, type =TODAY() in an empty cell, and then press ENTER.

When you type something like 2/2 in a cell, Excel for the web thinks you’re typing a date and shows it as 2-Feb. But you can change the date to be shorter or longer.

To see a short date like 2/2/2013, select the cell, and then click Home > Number Format > Short Date. For a longer date like Saturday, February 02, 2013, pick Long Date instead.

  • If a cell displays ##### after you apply date formatting to it, the cell probably isn’t wide enough to show the whole number. Try dragging the column that contains the cells with #####. This will resize the column to fit the number.

  • To enter a date that will update to the current date each time you reopen a worksheet or recalculate a formula, type =TODAY() in an empty cell, and then press ENTER.

Need more help?

You can always ask an expert in the Excel Tech Communityor get support inCommunities.

Need more help?

Want more options?

Discover Community

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Format a date the way you want (5)

Microsoft 365 subscription benefits

Format a date the way you want (6)

Microsoft 365 training

Format a date the way you want (7)

Microsoft security

Format a date the way you want (8)

Accessibility center

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Format a date the way you want (9)

Ask the Microsoft Community

Format a date the way you want (10)

Microsoft Tech Community

Format a date the way you want (2024)
Top Articles
Calculer le taux de rendement d'un placement grâce à la règle d'Einstein - La finance pour tous
Research Guides: Seeds & Sustainability: Community Swaps
Xre-02022
Global Foods Trading GmbH, Biebesheim a. Rhein
English Bulldog Puppies For Sale Under 1000 In Florida
Craigslist St. Paul
Steamy Afternoon With Handsome Fernando
Fototour verlassener Fliegerhorst Schönwald [Lost Place Brandenburg]
Boat Jumping Female Otezla Commercial Actress
Hope Swinimer Net Worth
Med First James City
Operation Cleanup Schedule Fresno Ca
9044906381
Truck Trader Pennsylvania
boohoo group plc Stock (BOO) - Quote London S.E.- MarketScreener
Sport-News heute – Schweiz & International | aktuell im Ticker
Craigslist Free Stuff Merced Ca
10 Fun Things to Do in Elk Grove, CA | Explore Elk Grove
Hennens Chattanooga Dress Code
The best firm mattress 2024, approved by sleep experts
Woodmont Place At Palmer Resident Portal
Bill Remini Obituary
Nk 1399
031515 828
10 Best Quotes From Venom (2018)
Craigslist Middletown Ohio
Promatch Parts
Http://N14.Ultipro.com
Moxfield Deck Builder
Prima Healthcare Columbiana Ohio
Barrage Enhancement Lost Ark
Hisense Ht5021Kp Manual
Lyca Shop Near Me
Eastern New Mexico News Obituaries
Anya Banerjee Feet
One Main Branch Locator
Rs3 Bis Perks
Gt500 Forums
Restored Republic June 6 2023
Questions answered? Ducks say so in rivalry rout
Nid Lcms
Brandon Spikes Career Earnings
Babykeilani
Bmp 202 Blue Round Pill
Enr 2100
Rise Meadville Reviews
bot .com Project by super soph
New Zero Turn Mowers For Sale Near Me
Marcel Boom X
The Plug Las Vegas Dispensary
Grandma's Portuguese Sweet Bread Recipe Made from Scratch
Latest Posts
Article information

Author: Patricia Veum II

Last Updated:

Views: 6085

Rating: 4.3 / 5 (64 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Patricia Veum II

Birthday: 1994-12-16

Address: 2064 Little Summit, Goldieton, MS 97651-0862

Phone: +6873952696715

Job: Principal Officer

Hobby: Rafting, Cabaret, Candle making, Jigsaw puzzles, Inline skating, Magic, Graffiti

Introduction: My name is Patricia Veum II, I am a vast, combative, smiling, famous, inexpensive, zealous, sparkling person who loves writing and wants to share my knowledge and understanding with you.