Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Globalization;
- namespace ConsoleTests
- {
- class ConsoleTests
- {
- static void Main()
- {
- string input = Console.ReadLine();
- DateTime date = DateTime.ParseExact(input, "dd.MM.yyyy H:mm:ss", CultureInfo.CurrentCulture);
- date = date.AddHours(6);
- date = date.AddMinutes(30);
- Console.WriteLine(date.ToString("dd.MM.yyyy H:mm:ss"));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement