You need to sign in to do that
Don't have an account?
Fan@EXC
REST API call always error out: Invalid format
When invoke a REST API (@HttpPost) with some datetime parameter with value: 2013-07-01 17:00:00, the apex class always complains "Invalid format": EXCEPTION_THROWN|[EXTERNAL]|System.JSONException: Invalid format: "2013-07-01 17:00:00" is malformed at " 17:00:00" What is the correct datetime format?
Including the JSON that you are sending
2013-07-01T17:00:00Z Or
2013-07-01T17:00:00
ISO-8601 . 2019-08-14T16:38:39+0000
UTC . 2019-08-14T16:38:39Z
Not sure the best place to suggest documentation updates, but this forum post is what helped me figure it out.