using System; namespace Program { class Program { static int Main() { DateTime SDate = new DateTime(2018, 10, 7); Console.WriteLine("Starting Date : {0}", SDate); DateTime EDate = SDate.AddDays(10); Console.WriteLine("Ending Date : {0}\n", EDate); Console.ReadLine(); return 0; } } }
Output