2
votes
Accepted
Invalid date/time issue in Apex Code
deserializing your datetime (both utc & ISO) in datetime.class should solve the issue.
JSON.desrialize('datetime' , Datetime.class);
i have tested both format in anynomous block and it is ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
webservices × 839apex × 392
rest-api × 107
integration × 92
callout × 90
soap × 84
soap-api × 69
api × 49
unit-test × 48
visualforce × 47
rest × 46
apex-webservice × 42
json × 41
wsdl × 35
wsdl2apex × 34
apexrest × 27
trigger × 26
marketing-cloud × 22
xml × 22
httprequest × 21
batch × 17
authentication × 16
javascript × 15
oauth2 × 15
webservicemock × 15