CSharp examples for System:DateTime Compare
Is Future
public class Main{ internal static bool IsFuture(this DateTime date) {//from w ww . j a v a 2 s . c o m return date.IsFuture(DateTime.Now); } internal static bool IsFuture(this DateTime date, DateTime from) { return date.Date > from.Date; } }