Advertisement
_CodeBehind

13. 1000 Days After Birth

Jan 21st, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.34 KB | None | 0 0
  1. using System;
  2. namespace daysafterwtf
  3. {
  4.   class Program
  5.   {
  6.     static void Main(string[]args)
  7.     {
  8.      string ftm = "dd-MM-yyyy";
  9.         string value = Console.ReadLine();
  10.         DateTime userBirthday = DateTime.ParseExact(value, ftm, null);
  11.         Console.WriteLine(userBirthday.AddDays(999).ToString("dd-MM-yyyy"));
  12.     }
  13.   }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement