Setup A Query to return the newest items

I have a dataset that has a field called Article_Published_Date and it is a string which would have the following type of value Wed, 6 Dec 2017 22:37:05 GMT. How can I create a query to find all the oldest of newest items based on the value within Article_Published_Date.

Hi there,

By design Algolia doesn’t support ISO dates format. If you want to filter on dates, you need to put the dates as timestamps.

You can find more on this topic here: https://www.algolia.com/doc/tutorials/full-text-search/filtering-faceting/swift/?language=laravel#filter-by-date

Does this answer your question?

Best,

1 Like

thanks yes it helps it makes some stuff a lil more difficult for me to do though