fork(1) download
  1. using System;
  2.  
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string dateString = "2013-11-08T10:00:04.000Z";
  8. DateTime convertedDate = DateTime.Parse(dateString);
  9. Console.WriteLine("Converted {0} to {1} time {2}",
  10. dateString,
  11. convertedDate.Kind.ToString(),
  12. convertedDate);
  13. }
  14. }
Success #stdin #stdout 0.07s 34064KB
stdin
Standard input is empty
stdout
Converted 2013-11-08T10:00:04.000Z to Local time 11/8/2013 10:00:04 AM