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
Hi All,
I'm trying to get all my blog posts that have release dates ("blogDate") later than today's date.
My current query is
var allBlogs = Model.Children().Where(x => x.IsVisible());
In Umbraco the user chooses a blog date which has a property of 'blogDate'
Is there a nice way of doing this without having to do something tedious like counting days?
Thanks, Lewis
Managed to get the following query working:
var allBlogs = Model.Children().Where(x => x.GetPropertyValue<DateTime>("blogDate") <= DateTime.Now.Date);
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
Datetime Query
Hi All,
I'm trying to get all my blog posts that have release dates ("blogDate") later than today's date.
My current query is
In Umbraco the user chooses a blog date which has a property of 'blogDate'
Is there a nice way of doing this without having to do something tedious like counting days?
Thanks, Lewis
Managed to get the following query working:
Thanks, Lewis
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.