Score:1

Best way to convert azure logs date time into an excel date time

cn flag

Hello when I export Azure logs to csv I get this datetime format that excel doesn't recognize as a valid date time format:

2022-10-19T12:05:58Z

Is this the best way to convert this to an excel datetime or is there something simpler?

=DATE(MID(A107,1,4),MID(A107,6,2),MID(A107,9,2)) + 
    TIME(MID(A107,12,2),MID(A107,15,2),MID(A107,18,2)) 
    - TIME(5,0,0) 
    + TIME(1,0,0)

This minus five hours is to convert it into Easter Standard Time and the plus one hours is to account for daylight savings time.

Score:1
gb flag

All Azure log dates are in UTC. Take a look at:

https://stackoverflow.com/questions/36456115/excel-how-to-convert-utc-date-time

=--SUBSTITUTE(LEFT(A1,FIND("Z",A1)-1),"T"," ")

Dave Sopko avatar
cn flag
Just remove the Z, thank you!
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.