Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Globalization;
- namespace _1000_days_after_birth
- {
- class Program
- {
- static void Main()
- {
- string dateString = Console.ReadLine();
- string format = "dd-MM-yyyy";
- DateTime result = DateTime.ParseExact(dateString, format, null);
- DateTime ss = result.AddDays(999);
- string dd = ss.ToString("dd-MM-yyyy");
- Console.WriteLine(dd);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment