Search By Publicationdate

Posted by Community Admin on 04-Aug-2018 15:05

Search By Publicationdate

All Replies

Posted by Community Admin on 16-Sep-2013 00:00

Hi all,

I have a custom search control and logic. I want to search all the contents published on specific date. But the publicationdate is DateTime format. How can I write a query to filter by a specific date? Thanks!

Posted by Community Admin on 19-Sep-2013 00:00

Hello,

You could get all items Where.(p => p.PublicationDate.Day == date).

The date could be specified by the following code:

var date = new DateTime(2013, 09, 19).Day;

Regards,
Stefani Tacheva
Telerik
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed