Advertisement
VZhelev

Untitled

May 28th, 2017
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 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. namespace SoftUni
  9. {
  10.     class Program
  11.     {
  12.         static void Main(string[] args)
  13.         {
  14.             string bornDate = Console.ReadLine();
  15.  
  16.             DateTime date;
  17.  
  18.             date = DateTime.ParseExact(bornDate, "dd-MM-yyyy", CultureInfo.InvariantCulture);
  19.             date = date.AddDays(999);
  20.  
  21.             Console.WriteLine(date.ToString("dd-MM-yyyy"));
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement