strange date format

%3CLINGO-SUB%20id%3D%22lingo-sub-1349838%22%20slang%3D%22en-US%22%3Estrange%20date%20format%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1349838%22%20slang%3D%22en-US%22%3E%3CP%3EI%20got%20a%20strange%20format%20that%20I%20need%20to%20apply%20a%20format%20to%2C%20so%20Excel%20interprets%20it%20as%20a%20date.%3C%2FP%3E%3CP%3EIt%20looks%20like%20this%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1%2F30%2F2018%203%3A58%3A07%20PM(UTC-5)%3C%2FP%3E%3CP%3E1%2F30%2F2018%2011%3A33%3A06%20AM(UTC-5)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAll%20these%20dates%20are%20currently%20sitting%20in%20a%20text%20column%20in%20my%20sheet.%3C%2FP%3E%3CP%3EI%20am%20unsuccessful%20in%20converting%20this%20column%20to%20date%20using%20text%20to%20columns%20and%20apply%20a%20format%2C%20I've%20tried%20mm%3Add%3Ayyyy%3Ahh%3Amm%3Ass%20AM%2FPM%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnyone%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1349838%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1349882%22%20slang%3D%22en-US%22%3ERe%3A%20strange%20date%20format%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1349882%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F641976%22%20target%3D%22_blank%22%3E%40axelaxelaxel%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPower%20Query%20is%20suitable%20for%20such%20transformations%2C%20if%20you%20consider%20such%20option.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESelect%20the%20range%20-%26gt%3B%20Replace%20%3CSTRONG%3E(UTC%3C%2FSTRONG%3E%20on%20space%20-%26gt%3B%20Replace%20%3CSTRONG%3E)%3C%2FSTRONG%3E%20on%20nothing%20-%26gt%3B%20Change%20Type%20Using%20locale%20-%26gt%3B%20Type%20DateTimeTimezone%2C%20locale%20English%20(US)%20-%26gt%3B%20return%20result%20to%20Excel%20sheet%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

I got a strange format that I need to apply a format to, so Excel interprets it as a date.

It looks like this: 

 

1/30/2018 3:58:07 PM(UTC-5)

1/30/2018 11:33:06 AM(UTC-5)

 

All these dates are currently sitting in a text column in my sheet.

I am unsuccessful in converting this column to date using text to columns and apply a format, I've tried mm:dd:yyyy:hh:mm:ss AM/PM

 

Anyone?

1 Reply
Highlighted

@axelaxelaxel 

Power Query is suitable for such transformations, if you consider such option.

 

Select the range -> Replace (UTC on space -> Replace ) on nothing -> Change Type Using locale -> Type DateTimeTimezone, locale English (US) -> return result to Excel sheet