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

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
Solution Sage
Solution Sage

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
Solution Sage
Solution Sage

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.

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Kudoed Authors