Reputation: 87
I have a file from amazon and in that they are providing datetime in UTC format.Below is the example of that :
2020-06-15T23:59:56+00:00
Now I want convert this datetime into PDT format in Excel using formula. Is it possible to do it?
Upvotes: 0
Views: 25503
Reputation: 50008
Use SUBSTITUTE
, and then subtract 7/24
to subtract 7 hours.
=SUBSTITUTE(SUBSTITUTE(A1,"T"," "),"+00:00","")-7/24
Upvotes: 2
Reputation: 1319
You could use something like below. It works in 3 parts :
=LEFT(SUBSTITUTE(A2,"T"," "),19) - 7/24
Upvotes: 3