Less Then Days - CSharp System

CSharp examples for System:DateTime Day

Description

Less Then Days

Demo Code


using System;//from  w ww . j  a  v  a 2  s.c o  m

public class Main{
        public static bool LessThenDays(this DateTime dateTime, int days)
        {
            return (DateTime.UtcNow - dateTime).TotalDays < days;
        }
}

Related Tutorials