fork(37) download
  1. using System;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. using System.Globalization;
  5. using System.Diagnostics;
  6. using System.IO;
  7. using System.Linq;
  8. using System.Linq.Expressions;
  9. using System.Net;
  10. using System.Text;
  11. using System.Configuration;
  12. using System.Text.RegularExpressions;
  13.  
  14. namespace ProgramConsole
  15. {
  16. public class Program
  17. {
  18. public static void Main(string[] args)
  19. {
  20. string s = "Fri Nov 01 2013 00:00:00 GMT+0100";
  21. DateTime dt = DateTime.ParseExact(s, "ddd MMM dd yyyy HH:mm:ss 'GMT'K", CultureInfo.InvariantCulture);
  22. Console.WriteLine(dt);
  23. }
  24. }
  25. }
Success #stdin #stdout 0.07s 33984KB
stdin
Standard input is empty
stdout
10/31/2013 11:00:00 PM