コード例 #1
0
 public static DateTime GetEndDate(this Post post)
 {
     return(CalendarFunctions.TryDateTimeParse(post.Custom("End Date")));
 }
コード例 #2
0
 public static DateTime GetEventDate(this Post post)
 {
     return(CalendarFunctions.TryDateTimeParse(post.Custom("Event Date")).Date);            // For backwards compatibility - the EventDate used to be saved with a time
 }