Is Past - CSharp System

CSharp examples for System:DateTime Compare

Description

Is Past

Demo Code



public class Main{
        internal static bool IsPast(this DateTime date)
        {/*  www . j  av  a  2s .  c o  m*/
            return date.IsPast(DateTime.Now);
        }
        internal static bool IsPast(this DateTime date, DateTime from)
        {
            return date.Date < from.Date;
        }
}

Related Tutorials