Converting different versions of Date-Time field

Bullflip

New Member
Joined
Jun 2, 2020
Messages
19
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am trying to convert a date-time field to a previous version of it. I have thousands of records of one date time format and then it recently got changed to a different format.

Here's the original date-time that I was receiving:

="2021-12-03 07:19 AM"

And now I'm getting it like this:

Mon, Dec 06, 2021 10:31 AM

Is there a formula that I can use to easily convert the newer date-time entry to the previous one? Any help would be greatly appreciated. Thank you!
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
if they are real dates , then it should be a formatting
so if you right click on the cell and change to General
do you just get a number
If so then a format will work

If not then you will need to use a combination of MID/Left/Right functions to pull the date into a new column
 
Upvote 0
if they are real dates , then it should be a formatting
so if you right click on the cell and change to General
do you just get a number
If so then a format will work

If not then you will need to use a combination of MID/Left/Right functions to pull the date into a new column
I think I will have to use a combination of the MID/Left/Right functions to separate the date. Thanks for the reply!
 
Upvote 0
try
=DATEVALUE(MID(A1,10,2)&"/"&MID(A1,6,3)&MID(A1,14,4))+TIMEVALUE(RIGHT(A1,8))

should change to a real date and time value

Now you can format
using custom format
yyyy-mm-dd h:mm AM/PM

Book1
AB
1Mon, Dec 06, 2021 10:31 AM2021-12-06 10:31 am
Sheet1
Cell Formulas
RangeFormula
B1B1=DATEVALUE(MID(A1,10,2)&"/"&MID(A1,6,3)&MID(A1,14,4))+TIMEVALUE(RIGHT(A1,8))
 
Upvote 0
Solution

Forum statistics

Threads
1,214,980
Messages
6,122,563
Members
449,088
Latest member
Motoracer88

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