Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Globalization;
- namespace Day_of_Week
- {
- class DayOfWeek
- {
- static void Main(string[] args)
- {
- string dateAsText = Console.ReadLine();
- DateTime date = DateTime.ParseExact(dateAsText, "d-M-yyyy", CultureInfo.InvariantCulture);
- Console.WriteLine(date.DayOfWeek);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement