Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Lopez0090
Helper III
Helper III

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
Resident Rockstar
Resident Rockstar

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
Resident Rockstar
Resident Rockstar

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

 

@Vera_33 

Thank you for your advance!!

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors