title: Ignore timezone when posting value from Angular app to .Net Core WebAPI
body: <p>I am posting the following JSON from my <code>Angular</code> application, to a <code>.Net Core WebAPI</code>:</p>
  
  <pre><code>{CompanyBillingHireRateId: 4, CompanyId: 44, AccountId: null, EquipmentId: 128, EffectiveDate: Sun Dec 29 2019 00:00:00 GMT+0200 (South Africa Standard Time)}
  </code></pre>
  
  <p>As you can see, the value of the <code>EffectiveDate</code> is as follow: <code>EffectiveDate: Sun Dec 29 2019 00:00:00 GMT+0200 (South Africa Standard Time)</code></p>
  
  <p>Below is my .Net Core controller method:</p>
  
  <pre><code>[HttpPut("billing/hirerates/update")]
      public async Task&lt;IActionResult&gt; UpdateNewCompanyBillingHireRateAsync([FromBody] CompanyBillingHireRateViewModel model)
      {
          try
          {
              var success = await _companyFacade.UpdateCompanyBillingHireRates_Async(model).ConfigureAwait(false);
              if (success)
                  return Created("", success);
              return StatusCode((int)HttpStatusCode.BadRequest);
          }
          catch (CustomException cEx)
          {
              await _customExceptionProcess.ProcessCustomException(cEx).ConfigureAwait(false);
              return StatusCode(cEx.StatusCode, new { Message = cEx.FriendlyMessage ?? "" });
          }
      }
  </code></pre>
  
  <p>Within my .Net application, the <code>EffectiveDate</code> is received as: <code>{2019/12/28 22:00:00 +00:00}</code></p>
  
  <p>In my <code>Startup.cs</code>, I am trying to configure the API to ignore timezone, and preserve the received date value as is, and convert to corresponding <code>datetime</code> in .Net, but failing to do so. Here is my Startup,cs configuration:</p>
  
  <pre><code>services.AddControllers().AddNewtonsoftJson(setup =&gt;
          {
              setup.SerializerSettings.ContractResolver = new DefaultContractResolver();
              setup.SerializerSettings.ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Ignore;
              setup.SerializerSettings.DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat;
              setup.SerializerSettings.DateParseHandling = Newtonsoft.Json.DateParseHandling.None;
              setup.SerializerSettings.DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Local;
          });
  </code></pre>
  
  <p>How can I configure the API to ignore timezones, and just read the JSON value as string, and parse to corresponding date received from Angular UI?</p>