Fetch date from 'text' date

Chartist

Board Regular
Joined
Apr 2, 2007
Messages
138
Office Version
  1. 365
Platform
  1. Windows
I have data in CSV format which contains dates (pasted below).

The dates of only some cells is recognized by Excel as date correctly (when I change Number type to Date).

How do I get the list of dates without having to manually type each out? Thanks.

1/1/2010 23:58:00
1/4/2010 23:58:00
1/5/2010 23:58:00
1/6/2010 23:58:00
1/7/2010 23:58:00
1/8/2010 23:58:00
1/11/2010 23:58:00
1/12/2010 23:58:00
1/13/2010 23:58:00
1/14/2010 23:58:00
1/15/2010 23:58:00
1/18/2010 23:58:00
1/19/2010 23:58:00
1/20/2010 23:58:00
1/21/2010 23:58:00
1/22/2010 23:58:00
1/25/2010 23:58:00
1/26/2010 23:58:00
1/27/2010 23:58:00
1/28/2010 23:58:00
1/29/2010 23:58:00
2/1/2010 23:58:00
2/2/2010 23:58:00
2/3/2010 23:58:00
2/4/2010 23:58:00
2/5/2010 23:58:00
2/8/2010 23:58:00
2/9/2010 23:58:00
2/10/2010 23:58:00
2/11/2010 23:58:00
2/12/2010 23:58:00
2/15/2010 23:58:00
2/16/2010 23:58:00
2/17/2010 23:58:00
2/18/2010 23:58:00
2/19/2010 23:58:00
2/22/2010 23:58:00
2/23/2010 23:58:00
2/24/2010 23:58:00
2/25/2010 23:58:00
2/26/2010 23:58:00
3/1/2010 23:58:00
3/2/2010 23:58:00
3/3/2010 23:58:00
3/4/2010 23:58:00
3/5/2010 23:58:00
3/8/2010 23:58:00
3/9/2010 23:58:00
3/10/2010 23:58:00
3/11/2010 23:58:00
3/12/2010 23:58:00
3/15/2010 23:58:00
3/16/2010 23:58:00
3/17/2010 23:58:00
3/18/2010 23:58:00
3/19/2010 23:58:00
3/22/2010 23:58:00
3/23/2010 23:58:00
3/24/2010 23:58:00
3/25/2010 23:58:00
3/26/2010 23:58:00
3/29/2010 23:58:00
3/30/2010 23:58:00
3/31/2010 23:58:00
4/1/2010 23:58:00
4/2/2010 23:58:00
4/5/2010 23:58:00
4/6/2010 23:58:00
4/7/2010 23:58:00
4/8/2010 23:58:00
4/9/2010 23:58:00
4/12/2010 23:58:00
4/13/2010 23:58:00
4/14/2010 23:58:00
4/15/2010 23:58:00
4/16/2010 23:58:00
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
All the Dates in your sample were recognized as Dates when I copied over to Excel. Are there some rogue dates that you want us to handle that may not be in the sample above
 
Upvote 0
Solution
ur right, it was a regional issue on the machine i was using at the time, thanks. wish i could delete the post!
All the Dates in your sample were recognized as Dates when I copied over to Excel. Are there some rogue dates that you want us to handle that may not be in the sample above
 
Upvote 0
ur right, it was a regional issue on the machine i was using at the time, thanks. wish i could delete the post!
It is good to leave the post, at least for reference sake. Sometime in 2050 :cool: , someone may just stumble on this and solve his problem with the "Regional Settings" tweak
 
Upvote 0

Forum statistics

Threads
1,214,897
Messages
6,122,151
Members
449,068
Latest member
shiz11713

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
Back
Top