Is Future - CSharp System

CSharp examples for System:DateTime Compare

Description

Is Future

Demo Code



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;
        }
}

Related Tutorials