Advertisement
bpavlov123bp

Untitled

Apr 3rd, 2016
481
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Globalization;
  4. namespace DaysAfterBirth
  5. {
  6. class Program
  7. {
  8. public static void Main(string[] args)
  9. {
  10. string inputDate = Console.ReadLine();
  11. DateTime date = DateTime.ParseExact(inputDate, "dd-MM-yyyy", CultureInfo.InvariantCulture);
  12. DateTime result = date.AddDays(999);
  13. Console.WriteLine("{0}", result.ToString("dd-MM-yyyy"));
  14. Console.Write("Press any key to continue . . . ");
  15. Console.ReadKey(true);
  16. }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement