Hi,
Response payload of one of the APIs I’m working on contains LastUpdate date. When I make an API call through postman, date is returned in UTC format(2023-11-22T17:46:55.3288086+00:00)
However, when same call is made through WebAPI Activity on UiPath it returns in ISO8601 format (2023-11-22T11:46:55.3288086-06:00)
My workflow involves in sending the response with these date values for an update (POST). And it is failing as the POST method is expecting UTC format. How do I convert this in UiPath? Using C#.
iso8601Date is of DataType System.String
dateTimeOffset is of DataType DateTimeOffset
utcDateTime is of DataType System.DateTime
utcFormat is of DataType System.string