title: Passing DateTimeOffset to WebAPI
body: <p>My WebAPI method looks like this:</p>
  
  <pre><code>[Route("api/v1.0/Profile/Test/{offset}")]
  public async Task&lt;ServiceResult&gt; GetTest(DateTimeOffset offset)
  {
  ...
  }
  </code></pre>
  
  <p>Calling it like this works:
  <a href="http://localhost:54295/api/v1.0/Profile/Test/2016-04-05T13:30:44-11:00" rel="nofollow">http://localhost:54295/api/v1.0/Profile/Test/2016-04-05T13:30:44-11:00</a></p>
  
  <p>However, this call won't work:
  <a href="http://localhost:54295/api/v1.0/Profile/Test/2016-04-05T13:30:44+11:00" rel="nofollow">http://localhost:54295/api/v1.0/Profile/Test/2016-04-05T13:30:44+11:00</a></p>
  
  <p>What's the trick here?</p>
  
  <p>In my Web.config in the <code>system.web</code> section I have this entry:</p>
  
  <pre><code>&lt;httpRuntime targetFramework="4.5" requestPathInvalidCharacters="&amp;lt;,&amp;gt;,%,&amp;amp;,*,\,?" /&gt;
  </code></pre>