fork(4) download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Globalization;
  5.  
  6. public class Test
  7. {
  8.  
  9. public static void Main()
  10. {
  11. string date = "Sun, 17 Mar 2013 12:40:23 +0000";
  12. DateTime dt = DateTime.Parse(date, CultureInfo.InvariantCulture);
  13. Console.WriteLine(dt);
  14. }
  15. }
Success #stdin #stdout 0.08s 33984KB
stdin
Standard input is empty
stdout
3/17/2013 12:40:23 PM