reporting services - How to handle UTC dates in a report -
i have report 2 parameters - startdate , enddate - run stored procedure returns data between these 2 dates.
the dates in database stored in utc. in uk on bst (utc+1).
to show times in correct time zone, in report using system.timezone.currenttimezone.tolocaltime.
the end result times displayed on report correct, user still has enter startdate , enddate parameters in utc. confuses user expect able enter date in current time zone, times in database utc.
how can allow date parameters entered in correct time zone?
unfortunately, can't modify schema of database need find way fix on reporting side
in ssrs, if date stored in database utc, has utc when select query in parameter setting. not supported change field query in parameter. requirement, can either format date local time in query. or can select utc date in parameter, , render local time
Comments
Post a Comment