Convert Text Dates from MM/DD/YYYY to YYYY/M/D in Excel
Question details
Convert dates stored as text, such as 1/1/2022, into usable dates and display them as 2022/1/1.

- 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.
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.
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.
Select the column or cells containing the text dates, then choose Data > Text to Columns.
Choose Delimited and click Next. Clear any selected delimiters so each date remains in one column, then click Next.
Under Column data format, select Date and choose MDY. Set the destination if needed, then click Finish.
Right-click the converted cells and choose Format Cells > Number > Custom. Enter yyyy/m/d in the Type box and click OK.

Display an Existing Excel Date with the TEXT Function
Use this method when the source is already a real Excel date and you need the formatted result in another cell.
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. Open the workbook: Open the Excel workbook in WPS Spreadsheets and locate the column containing the text dates.
- 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. Format the result: Right-click the formula cell, choose Format Cells > Custom, enter yyyy/m/d, and confirm.
- 4. Convert additional rows: Drag the formula cell's fill handle down to convert the remaining dates.

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.




