Maha

Maha

  • NA
  • 0
  • 324.8k

DateTime

Jul 4 2013 5:29 PM
In this program out is:
        04/07/2013 5:19:12 PM
        False

But expected output is: 
        04/07/2013 5:19:12 PM
        True

Please correct this program.

using System;

class Program
{
static void Main()
{
DateTime value = DateTime.Now;

Console.WriteLine(value);

Console.WriteLine(value == DateTime.Now);

Console.ReadKey();
}
}
/*
04/07/2013 5:19:12 PM
False
*/


Answers (4)