Reputation: 143
I have tried my best to convert one textbox to UTC using the SSRS expression. It is not converting it. Is there any settings to configure before this code can work ? i used these two code below. Nothing works!
=TimezoneInfo.ConvertTimetoUtc(CDate(Fields!Starttime.Value))
=DateTime.SpecifyKind(Fields!Starttime.Value, DateTimeKind.UTC)
Upvotes: 0
Views: 2339
Reputation: 10066
Use the expression below
=Fields!Starttime.Value.ToUniversalTime()
Design & Result with sample data
Upvotes: 1