4
Answers

DateTime

Maha

Maha

11y
1.2k
1
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)