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 DayOFWeek
- {
- class DayOFWeek
- {
- static void Main()
- {
- int[] datelemt = Console.ReadLine().Split('.').Select(int.Parse).ToArray();
- DateTime date = new DateTime(datelemt[2], datelemt[1], datelemt[0]);
- Console.WriteLine(date.DayOfWeek);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment