Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

OData time format

Former Member
0 Likes
618
  • SAP Managed Tags

Hi All.

I would like to know how to write datetime format in Json code for SF OData v2. I tried with this example 01-01-2016T14:42:30 but it gives an error as "Illegal datetime format". I am using this for POST operation.

1 REPLY 1
Read only

SergioG_TX
SAP Champion
SAP Champion
0 Likes
389
  • SAP Managed Tags

you can create a new date object,,,

new Date(<DATETIME>)  and make sure you perform the JSON.stringify(data) on your data object while POSTing via AJAX

hope this helps