Skip to content

Instantly share code, notes, and snippets.

@jkarsrud
Created June 26, 2013 13:57
Show Gist options
  • Save jkarsrud/5867561 to your computer and use it in GitHub Desktop.
Save jkarsrud/5867561 to your computer and use it in GitHub Desktop.
var events = Model.Content.Descendants("Event")
.Where(x => x.GetPropertyValue<DateTime>("startTime").Date >= DateTime.UtcNow.Date)
.OrderByDescending(x => x.GetPropertyValue<DateTime>("startTime"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment