Advertisement
veronikaaa86

Date After 1000 Days

Oct 17th, 2017
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.48 KB | None | 0 0
  1. using System;
  2. using System.Globalization;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8. namespace Date_after_1000days
  9. {
  10.     class Program
  11.     {
  12.         static void Main(string[] args)
  13.         {
  14.             DateTime date = DateTime.ParseExact(Console.ReadLine(), "dd-MM-yyyy", null);
  15.             DateTime data2 = date.AddDays(999);
  16.             Console.WriteLine(data2.ToString("dd-MM-yyyy"));
  17.  
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement