Advertisement
NikolaySpasovTriset

1000daysAfterBirth

Sep 13th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.33 KB | None | 0 0
  1. using System;
  2.  
  3.  
  4. namespace _1000daysAftBird
  5. {
  6.     class Program
  7.     {
  8.         static void Main()
  9.         {
  10.             string dt = (Console.ReadLine());
  11.             string format = "dd-MM-yyyy";
  12.             string dt2 = (DateTime.Parse(dt).AddDays(999)).ToString(format);
  13.             Console.WriteLine(dt2);
  14.         }
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement