fork(22) download
  1. using System;
  2. using System.Globalization;
  3. using System.Linq;
  4. using System.Collections.Generic;
  5.  
  6. public class Test
  7. {
  8.  
  9.  
  10. public static void Main()
  11. {
  12. string dtStr = "Thu Jul 18 17:39:53 +0000 2013";
  13. var dateTime = DateTime.ParseExact(dtStr, "ddd MMM dd HH:mm:ss zzzz yyyy", CultureInfo.InvariantCulture);
  14. Console.WriteLine(dateTime);
  15. }
  16. }
Success #stdin #stdout 0.07s 33968KB
stdin
Standard input is empty
stdout
7/18/2013 5:39:53 PM