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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors