0

I'm using the following REST call to get the data. Here is the url structure:

SiteURL+'/_api/web/lists/GetByTitle(\''ListTitle+'\')/items?$select=AlternateThumbnailUrl,Title,Created

this is returning the 'Created' values as text ("2013-09-23T23:56:46Z"). My requirement is to get hours and minutes data as well. I'm not able to use REST day(Created), hour(Created), minute(Created) functions in $select parameter (getting 400 bad request error). Can anyone suggest to me a way to get the hours and minutes data using REST?

Thanks in advance.

1

You can convert the date time string returned into javascript datetime object, and extract the information required. Take a look at this link

var date = new Date("2013-09-23T23:56:46Z");

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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