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
Power BI October Update 2021.jpg

Power BI Release

Click here to read more about the October 2021 Release!

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Power BI Womens Summit 2021 768 x460.jpg

Interviews, learning sessions, allies, and more!

#PowerBIWomenSummit

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 Solution Authors
Top Kudoed Authors