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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors