Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How can I compare a date with one from another node. I have a settings node with a lastSent date and want to select only news articles since that date.
This is what I have but it gives me a syntax error.
@Model.Descendants("NewsArticle").Where("Visible && articleDate > " + @settingsNode.newsletterLastSent).OrderBy("articleDate desc")
Can anyone help fix it.
Hi. Try it:
...Where("Visible && articleDate > @0", settingsNode.newsletterLastSent)...
Thank you :D
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Comparing dates
How can I compare a date with one from another node. I have a settings node with a lastSent date and want to select only news articles since that date.
This is what I have but it gives me a syntax error.
Can anyone help fix it.
Hi. Try it:
Thank you :D
is working on a reply...