* C# Program to Campare Two Dates
*/
using System;
namespace DateAndTime
{
class Program
{
static int Main()
{
DateTime sd = new DateTime(2010, 10, 12);
Console.WriteLine("Starting Date : {0}", sd);
DateTime ed = sd.AddDays(10);
Console.WriteLine("Ending Date : {0}", ed);
if (sd < ed)
Console.WriteLine("{0} Occurs Before {1}", sd, ed);
Console.Read();
return 0;
}
}
}
If the answers is incorrect or not given, you can answer the above question in the comment box. If the answers is incorrect or not given, you can answer the above question in the comment box.