cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

Re: Date Field Time Zone Fix

Hi ThePowerBIQueen ,

 

To see you local timezone, use power query function:

DateTimeZone.LocalNow() 

Or DAX function:

LocalTime = now()

 

To change timezone, use power query function:

 = DateTimeZone.SwitchZone(dateTimeZone, timezoneHours , timezoneMinutes )

 

In addtion, please refer to:

http://radacad.com/solving-dax-time-zone-issue-in-power-bi

https://msdn.microsoft.com/en-us/query-bi/m/datetimezone-functions

 

Regards,

Jimmy Tao

View solution in original post

2 REPLIES 2
edhans New Contributor
New Contributor

Re: Date Field Time Zone Fix

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.

Highlighted
Community Support Team
Community Support Team

Re: Date Field Time Zone Fix

Hi ThePowerBIQueen ,

 

To see you local timezone, use power query function:

DateTimeZone.LocalNow() 

Or DAX function:

LocalTime = now()

 

To change timezone, use power query function:

 = DateTimeZone.SwitchZone(dateTimeZone, timezoneHours , timezoneMinutes )

 

In addtion, please refer to:

http://radacad.com/solving-dax-time-zone-issue-in-power-bi

https://msdn.microsoft.com/en-us/query-bi/m/datetimezone-functions

 

Regards,

Jimmy Tao

View solution in original post

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 44 members 990 guests
Please welcome our newest community members: