DateTime.Equals(DateTime dt)
using System;
class MainClass {
public static void Main() {
DateTime myDateTime3 = new DateTime(2004, 1, 13);
DateTime myDateTime4 = new DateTime(2004, 1, 14);
bool boolResult = DateTime.Equals(myDateTime3, myDateTime4);
Console.WriteLine("DateTime.Equals(myDateTime3,myDateTime4) = " + boolResult);
boolResult = myDateTime3.Equals(myDateTime4);
Console.WriteLine("myDateTime3.Equals(myDateTime4) is " + boolResult);
}
}
Related examples in the same category