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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

SSRS Local Time in Power BI Service?

Hi All,

 

I am having issue getting local time (With daylight savings etc) in a SSRS report on the Power BI Service.

 

Currently I tried:

System.TimeZone.CurrentTimeZone.ToLocalTime(Fields!DateTime.Value)

 

Any thoughts would be great!

 

Cheers

1 ACCEPTED SOLUTION
Anonymous
Not applicable

The Solution I found was the following:

 

Source: https://www.c-sharpcorner.com/UploadFile/ff2f08/dealing-with-time-zones-in-ssrs-reports/

 

I used the first version, with the function. However I needed to change the format of the start date. 

 

format(Code.FromUTC(format(Globals!ExecutionTime,"yyyy-MM-dd HH:mm:ss"), "New Zealand Standard Time")

View solution in original post

1 REPLY 1
Anonymous
Not applicable

The Solution I found was the following:

 

Source: https://www.c-sharpcorner.com/UploadFile/ff2f08/dealing-with-time-zones-in-ssrs-reports/

 

I used the first version, with the function. However I needed to change the format of the start date. 

 

format(Code.FromUTC(format(Globals!ExecutionTime,"yyyy-MM-dd HH:mm:ss"), "New Zealand Standard Time")

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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