I'm calling a Soap service which is returning Date
and Time
in two different element. Something like this...
<ns2:Date>2023-04-27</ns2:Date>
<ns2:Time>02:34:00+04:00</ns2:Time>
When this mapped into C# object, the value of the time
converted to Local container time. Time
is of DateTime
type.
Here the time is converted to UTC time by considering the timzezone information. But date didn't changed. Ideally, If both date and time coming in one field, then the Date should have been 04/26/2023 22:34:00
. Since it is coming in separate field, I'm not able to convert it properly. For time Field, It has a Kind
as Local
. Can we use this information to convert this properly. Or is there any solution?