cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Lopez0090
Helper II
Helper II

Mquery to change datatime to localtime

The date captured in the Sharepoint list was different from the time actually displayed on the PC.
I want to change it to local time in the Query Editor, but I don't know how.

スクリーンショット 2021-05-20 102624.png

 

If anyone knows how to do this, could you please let me know?

1 ACCEPTED SOLUTION
Vera_33
Super User
Super User

Hi @Lopez0090 

 

It depends on what the time difference you want to switch, have a look at DateTimeZone functions in M:

DateTimeZone.SwitchZone

DateTimeZone.ToUtc

DateTimeZone.ToLocal

 

Vera_33_0-1621481088896.png

 

View solution in original post

2 REPLIES 2
Vera_33
Super User
Super User

Hi @Lopez0090 

 

It depends on what the time difference you want to switch, have a look at DateTimeZone functions in M:

DateTimeZone.SwitchZone

DateTimeZone.ToUtc

DateTimeZone.ToLocal

 

Vera_33_0-1621481088896.png

 

View solution in original post

@Vera_33 

Thank you for your advance!!

 

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Teds Dev Camp Oct. 2021 768x460.jpg

Power BI Dev Camp - October 28th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!

Top Kudoed Authors