public static void Main()
DateTime? b = DateTime.Now;
compare(a.GetValueOrDefault(),b);
private static void compare(DateTime? a, DateTime? b)
Console.WriteLine("'{0}' is bigger than '{1}'.", b, a);
Console.WriteLine("'{0}' is bigger than '{1}'.", a, b);
Console.WriteLine("Both '{0}' and '{1}' are equal.", a, b);
Console.WriteLine("'{0}' and '{1}' are not equal.", a, b);
Console.WriteLine("--------------------------------------");