use the overloaded less than operator ( : Date Time : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » Date Time »

 

use the overloaded less than operator (








    
 

using System;

class MainClass {

    public static void Main() {
        DateTime myDateTime3 = new DateTime(2004, 1, 13);
        DateTime myDateTime4 = new DateTime(2004, 1, 14);

        bool boolResult = myDateTime3 < myDateTime4;
        Console.WriteLine("myDateTime3 < myDateTime4 is " + boolResult);

    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» Date Time