title: Implement Custom DateTime Converter with JSON.NET
body: <p>I'm having troubles parsing the below JSON when using a Date Time converter.  I understand the "-" and "at" cause problems, but this is the JSON I have in a response and do not have control over it.</p>
  
  <pre><code>"[{\"Desc\":\"Unacceptable Signal\",\"Station\":\"Test\",\"When\":\"Tuesday - 5/18/10 at 3:34 PM\"},{\"Desc\":\"Low Battery\",\"Station\":\"Test Unit (21261)\",\"When\":\"Wednesday - 3/30/11 at 12:34 AM\"}]"
  </code></pre>
  
  <p>My Model is:</p>
  
  <pre><code>public class CurrentAlarms
      {
          public string Desc { get; set; }
          public string Station { get; set; }
          public DateTime When { get; set; }
  
          public CurrentAlarms() { }
  
          public CurrentAlarms(string desc, string station, DateTime when)
          {
              Desc = desc;
              Station = station;
              When = when;
          }
      }
  </code></pre>
  
  <p>I have tried deserializing it as shown below, even by removing the "at" in the Date Time string, but I still get a "string is not in the correct format" exception from JSON.NET. I am having a hard time figuring out other ways of resolving.  Any help would be appreciated!</p>
  
  <pre><code>json = json.Replace(" at ", " ");
  
  var format = "dddd MM/dd/yy h:mm tt";
  var dateTimeConverter = new IsoDateTimeConverter {DateTimeFormat = format};
  
  var result = JsonConvert.DeserializeObject&lt;ObservableCollection&lt;CurrentAlarms&gt;&gt;(json, dateTimeConverter);
  </code></pre>