Microsoft has also implemented the operators ‘<‘ and ‘>’. So you use these to compare two dates.
if (date1 < DateTime.Now)
Console.WriteLine("Less than the current time!");
Microsoft has also implemented the operators ‘<‘ and ‘>’. So you use these to compare two dates.
if (date1 < DateTime.Now)
Console.WriteLine("Less than the current time!");