Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Date Field Time Zone Fix

I have a date/time field that is pulling from an API that is not in my time zone. Is there a way I can convert the timezone to show CST?

3 Replies

  • edhans's avatar
    edhans
    Community Champion

    Check out the DateTimeZone.SwitchZone function in Power Query. You can use that to add/subtract hours from your source time zone to your current time zone.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hello, 

     

    Sorry for open an old post but I have the following problem: I'm importing tables through SQL SERVER and the date/time fields are in a different time zone. I have the code to convert via SQL (to_char(cast ...) but sometimes I import the whole table instead of writing a query. 

     

    How to convert date/time fields to my time zone without add a new column?

     

    Thank you!