Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ericOnline
Post Patron
Post Patron

Control STRING to DATE/TIME Conversion?

Hello, 

 

When changing a STRING type column to a DATE/TIME type colum using:

 

#"Changed Type" = Table.TransformColumnTypes(
    #"Reordered Columns1",
        {
            {"weatherTime", type datetime}
        }
),

... some kind of "auto-magic" is applied to the time that I DO NOT WANT. In this case, the auto-magic is changing the string from

2017-11-01T12:00:00.000Z

to 

11/1/2017 5:00:00 AM

 

which is a -7hr translation for some reason.

 

How do I control this conversion?


Thank you

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @ericOnline,

 

It may be because of your computer timezone. 

 

Regards,

Ravi

View solution in original post

Hi @Anonymous, you're right. I just realized that the original TimeStamp (STRING) is 12:00 PM not 12:00 AM (which would have been 00:00). 

 

Thank you for your insights.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @ericOnline,

 

It may be because of your computer timezone. 

 

Regards,

Ravi

Hi @Anonymous, you're right. I just realized that the original TimeStamp (STRING) is 12:00 PM not 12:00 AM (which would have been 00:00). 

 

Thank you for your insights.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.