title: JsonConvert.DeserializeObject with two types of datetime format
body: <p>I need to expect both: <strong>dd/MM/yyyy</strong> and <strong>dd/MM/yyyy HH:mm:ss</strong></p>
  
  <pre><code>var dateTimeConverter = new IsoDateTimeConverter { DateTimeFormat = "dd/MM/yyyy HH:mm:ss" };
  var resultado = JsonConvert.DeserializeObject&lt;MyObject&gt;(json, dateTimeConverter);
  </code></pre>
  
  <p>With this code, i received the following error message:</p>
  
  <blockquote>
    <p>System.FormatException: 'String was not recognized as a valid DateTime.'</p>
  </blockquote>