Search By Publicationdate
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!
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;