Advertisement
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 _1000DaysAfterBirth
- {
- class Program
- {
- static void Main(string[] args)
- {
- String usrinput = Console.ReadLine();
- DateTime dt = DateTime.ParseExact(usrinput, "dd-MM-yyyy", System.Globalization.DateTimeFormatInfo.InvariantInfo);
- Console.WriteLine("{0}", dt);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement