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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.