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
Right now I have a code that checks for only future dates
var times = school.Children.Where("date > DateTime.Now.Date").OrderBy("date");
This code works perfectly.
However, now I want to include dates that are six months old as well, how would that code look like?
Try this:
var times = school.Children.Where("date > CreateDate && date > DateTime.Now.Date").OrderBy("date");
I'm not sure what value date is returning but using date as you've used above this might work. Please reply if not so I can take another look.
How would that code include dates that are 6 months from current time?
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
Check old dates
Right now I have a code that checks for only future dates
This code works perfectly.
However, now I want to include dates that are six months old as well, how would that code look like?
Try this:
I'm not sure what value date is returning but using date as you've used above this might work. Please reply if not so I can take another look.
How would that code include dates that are 6 months from current time?
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.