title: Specifying a custom DateTime format when serializing with Json.Net
body: <p>I am developing an API to expose some data using ASP.NET Web API.</p>
  
  <p>In one of the API, the client wants us to expose the date in <code>yyyy-MM-dd</code> format. I don't want to change the global settings (e.g. <code>GlobalConfiguration.Configuration.Formatters.JsonFormatter</code>) for that since it is very specific to this client. And I do developing that in a solution for multiple clients.</p>
  
  <p>One of the solution that I could think of is to create a custom <code>JsonConverter</code> and then put that to the property I need to do the custom formatting</p>
  
  <p>e.g.</p>
  
  <pre><code>class ReturnObjectA 
  {
      [JsonConverter(typeof(CustomDateTimeConverter))]
      public DateTime ReturnDate { get;set;}
  }
  </code></pre>
  
  <p>Just wondering if there is some other easy way of doing that.</p>