Formatting Issues

Convert Text Dates from MM/DD/YYYY to YYYY/M/D in Excel

Natalie TaylorNatalie Taylor Dec 2, 2026 869 views

Question details

Convert dates stored as text, such as 1/1/2022, into usable dates and display them as 2022/1/1.

How to Convert Text Dates from MM/DD/YYYY to YYYY/M/D in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet contains dates written in month/day/year order, and the user wants a year/month/day display without leading zeros.
Observed behavior
The desired result is an Excel date that displays as YYYY/M/D and can be used in date calculations.
Before you start

Check that the source values use month/day/year order and represent valid dates. If you plan to use Text to Columns, make sure the destination cells can be overwritten or choose an empty destination.

Solution 1Recommended

Convert Text Dates with Text to Columns and Apply a Custom Format

Use this method to turn text into date values that Excel can calculate with.

1
Select the dates

Select the column or cells containing the text dates, then choose Data > Text to Columns.

2
Keep each date together

Choose Delimited and click Next. Clear any selected delimiters so each date remains in one column, then click Next.

3
Convert using MDY

Under Column data format, select Date and choose MDY. Set the destination if needed, then click Finish.

4
Apply the display format

Right-click the converted cells and choose Format Cells > Number > Custom. Enter yyyy/m/d in the Type box and click OK.

Convert Text Dates with Text to Columns and Apply a Custom Format
Check the result: In an empty cell, enter =ISNUMBER(A1), replacing A1 with a converted cell. TRUE indicates that the value is numeric; the custom format controls how it appears.
WPS Spreadsheets

Convert and Format Text Dates in WPS Spreadsheets

Use a DATE formula in WPS Spreadsheets to convert slash-separated month/day/year text, then apply a custom date format to display the result as YYYY/M/D.

  1. 1. Open the workbook: Open the Excel workbook in WPS Spreadsheets and locate the column containing the text dates.
  2. 2. Enter a conversion formula: In an empty cell, enter =DATE(RIGHT(A1,4),LEFT(A1,FIND("/",A1)-1),MID(A1,FIND("/",A1)+1,FIND("/",A1,FIND("/",A1)+1)-FIND("/",A1)-1)), replacing A1 with the source cell. This assumes a valid date with a four-digit year.
  3. 3. Format the result: Right-click the formula cell, choose Format Cells > Custom, enter yyyy/m/d, and confirm.
  4. 4. Convert additional rows: Drag the formula cell's fill handle down to convert the remaining dates.
Convert text dates into values usable in date calculationsDisplay dates without leading zeros using a custom formatOpen and save Microsoft Excel XLSX filesUse a familiar spreadsheet interface for free
microsoft office alternative - wps office

Frequently Asked Questions

Why doesn't a custom date format change my text date?

Custom number formats change the display of numeric date values, not text. Select the cells and use Data > Text to Columns with Date set to MDY before applying the custom format.

How can I tell whether Excel recognizes a date as a number?

Enter =ISNUMBER(A1) in an empty cell, replacing A1 with the date cell. TRUE means Excel stores the value as a number; check its date format to confirm it displays as intended.

Can I keep a converted date usable in calculations?

Yes. Convert the text with Data > Text to Columns and apply the custom format yyyy/m/d. Unlike the TEXT function, a custom format leaves the underlying date value numeric.

What if my source dates use day/month/year order?

In the final Text to Columns wizard step, select Date and choose DMY instead of MDY. Then apply yyyy/m/d under Format Cells > Custom.