title: Trying pass datetime to the api
body: <p>I am trying to pass the current client local date time to API by using the GET method, getting the error,</p>
  <p>UI:</p>
  <pre><code>  const localDateTime = new Date().toLocaleString();
  
    await fetchDocument(`${process.env.REACT_APP_API_URL}/api/projects/${projectNumber}/${localDateTime}/${currentProjectPhase}`,
    setIsBodDownloading,
    instance,
    history
    );
  </code></pre>
  <p>API:</p>
  <pre><code>    [HttpGet(&quot;{projectNumber}/{localDateTime}/{projectPhase?}&quot;)]
      public async Task&lt;ActionResult&gt; BasisOfDesign(
          [FromServices] IDbContextFactory&lt;APIDbContext&gt; serviceScopeFactory,
          [FromServices] ICrmProjects crmProjects,
          [FromServices] IConfiguration configuration,
          [FromServices] IEmployeeContext employeeContext,
          string projectNumber,
          string localDateTime,
          string projectPhase = null,    
          CancellationToken cancellationToken = default)
      {  
  
          .....
          ....
       }
  </code></pre>
  <p>I am getting the below error.</p>
  <blockquote>
  <p>{&quot;errors&quot;:[{&quot;message&quot;:&quot;Either the parameter query or the parameter id
  has to be set.&quot;,&quot;extensions&quot;:{&quot;code&quot;:&quot;HC0013&quot;}}]}</p>
  </blockquote>
  <p>I cannot use the server time, and I need to use only the client date and time for processing the results. I am looking into this type of string &quot;12-19-2012, 7:00:00 PM&quot;</p>
  <p>Could anyone please let me know, Where I am doing wrong with the above code?</p>