fork(43) download
  1. using System;
  2. using System.Globalization;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var date = DateTime.ParseExact(
  9. "Mon Jan 13 2014 00:00:00 GMT+0000 (GMT Standard Time)",
  10. "ddd MMM dd yyyy HH:mm:ss 'GMT+0000 (GMT Standard Time)'",
  11. CultureInfo.InvariantCulture);
  12. Console.WriteLine(date.ToString("yyyy-MM-dd"));
  13. }
  14. }
Success #stdin #stdout 0.06s 34088KB
stdin
Standard input is empty
stdout
2014-01-13