Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Date_after_5_Days
- {
- class Program
- {
- static void Main(string[] args)
- {
- var day = Console.ReadLine();
- var month = Console.ReadLine();
- string year = "2015";
- string time = year + '-' + month + '-' + day;
- DateTime timeNew = DateTime.Parse(time);
- DateTime after5days = timeNew.AddDays(5);
- int dayDate = after5days.Day;
- int monthDate = after5days.Month;
- Console.WriteLine("{0}.{1:00}", dayDate, monthDate);
- }
- }
- }
Add Comment
Please, Sign In to add comment