title: Newtonsoft Json.NET ignore default datetime values when serializing
body: <p>How to setup <code>JsonSerializer</code> to ignore DateTime properties with default value <code>0001-01-01T00:00:00</code>, but to serialize enums and numbers with default values at the same time?</p>
  
  <p>this ignores also enums:</p>
  
  <pre><code>_jsonSerializer = new JsonSerializer();
  _jsonSerializer.DefaultValueHandling = DefaultValueHandling.Ignore;
  </code></pre>
  
  <p>and this includes also default datetimes:</p>
  
  <pre><code>_jsonSerializer.DefaultValueHandling = DefaultValueHandling.Include;
  </code></pre>