0

I want to store date along with the time in SharePoint list using the Rest API How should I convert ("28-02-2018 12:43 PM") to date and time format using the jquery. and How should I store it into the SharePoint list

1 Answer 1

1

You need to have a date time column in your list to be able to store date time values. Next, while doing POST to create list item, convert the date time value to ISO 8601 format and then call the REST API. Sample JS code given below.

var d = new Date();
d.toISOString();

You can also check this function which does the same thing as toISOString().

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.