Change Date from 20040102 to 2004/01/02

anand_satavalekar

New Member
Joined
Sep 23, 2006
Messages
1
I have date in a numeric format: 20040102 (which is in the yyyymmdd format).

How do I change it to Date format? I do not want to manually insert "/" between year and month and date.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,300
Office Version
  1. 365
Platform
  1. Windows
You could use Data>Text to columns... and on the 3rd step choose YMD from the dropdown.

That should create a 'real' data value which you could then custom format as yyyy/mm/dd.
 

phxsportz

Well-known Member
Joined
Jun 11, 2006
Messages
1,985
=LEFT(A1,4) & "/" & LEFT(RIGHT(A1,4),2) & "/" & RIGHT(A1,2)

Assuming your dates are in Column A
 

just_jon

Legend
Joined
Sep 3, 2002
Messages
10,473
Welcome to MrExcel -

You should be able to simple highlight the cell{s} in question, then click Format | Cells | select Date, then the desired format.

The above presupposes the cell is a true date.
 

Forum statistics

Threads
1,136,307
Messages
5,674,986
Members
419,541
Latest member
freddyboots

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top