Advertisement
svetoslavhl

Next_Date

Mar 4th, 2014
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. using System;
  2. using System.Globalization;
  3.  
  4. using System.Threading;
  5. class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
  10. short day = short.Parse(Console.ReadLine());
  11. short mounth = short.Parse(Console.ReadLine());
  12. short year = short.Parse(Console.ReadLine());
  13.  
  14. DateTime now = new DateTime(year, mounth, day);
  15.  
  16. now = now.AddDays(1);
  17.  
  18. Console.WriteLine("{0:d.M.yyyy}", now);
  19. }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement