Advertisement
braveheart1989

13.1000 Days After Birth

Mar 7th, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.43 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Globalization;
  7.  
  8. class Program
  9. {
  10.     static void Main(string[] args)
  11.     {
  12.         string format = "dd-MM-yyyy";
  13.         DateTime dayAfterThousandDays = DateTime.ParseExact(Console.ReadLine(), format, null);
  14.         Console.WriteLine("{0:dd-MM-yyyy}", dayAfterThousandDays.AddDays(999));
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement