Aborigenius

RegisterUsersUnfinished

Jul 19th, 2017
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.79 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Globalization;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7.  
  8.  
  9. namespace RegisteredUsers
  10. {
  11.     class Program
  12.     {
  13.         static void Main(string[] args)
  14.         {
  15.             Dictionary<string, DateTime> users = new Dictionary<string, DateTime>();
  16.             string []input = Console.ReadLine().Split(new char[] { '-', '>', ' ' });
  17.  
  18.             while (input[0] != "end")
  19.             {
  20.                 string name = input[0];
  21.                 string dateString = input[1];
  22.                 DateTime date = DateTime.ParseExact(dateString, "dd/MM/yyyy", CultureInfo.InvariantCulture);
  23.                 input = Console.ReadLine().Split(new char[] { '-', '>', ' ' });
  24.             }
  25.         }
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment