Convert UTC DateTime to Local DateTime with Daylight Saving in Webservice

Hi All,

I have an issue in converting UTC DateTime to Local DateTime from Webservice. I’m working for Australian Client and they are having 2 TimeZones AEST -GMT+10 and AEDT-GMT+11(Daylight Saving) and Current TimeZone is AEST.

When I try to access the Change log and converting datetime to Local Datetime its working properly for Current TimeZones.

When I try to access Datetime from different timezones and tried to convert, giving wrong Times.

pastedimage1624251334364v1.png

These entries are made in AEDT Timezone. after converting I get below output.which has 1 hr difference.

2021-02-02T05:18:35.81Z

Code:

Please suggest.

Thanks in Advance.