Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Globalization;
- namespace DaysAfterBirth
- {
- class Program
- {
- public static void Main(string[] args)
- {
- string inputDate = Console.ReadLine();
- DateTime date = DateTime.ParseExact(inputDate, "dd-MM-yyyy", CultureInfo.InvariantCulture);
- DateTime result = date.AddDays(999);
- Console.WriteLine("{0}", result.ToString("dd-MM-yyyy"));
- Console.Write("Press any key to continue . . . ");
- Console.ReadKey(true);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement