简体   繁体   中英

SSRS Expression Conversion to UTC

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)

Use the expression below

=Fields!Starttime.Value.ToUniversalTime()

Design & Result with sample data

在此处输入图片说明

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM