EmoRz

ThousandDayAfterBirth

Jun 12th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 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. using System.IO;
  8.  
  9. namespace AThousandDaysOnEarth
  10. {
  11.     class Program
  12.     {
  13.         static void Main(string[] args)
  14.         {
  15.             string date = Console.ReadLine();
  16.             DateTime start = DateTime.ParseExact(date,"dd-MM-yyyy", CultureInfo.InvariantCulture);
  17.             Console.WriteLine("{0:dd-MM-yyyy}",start.AddDays(999));
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment