title: Blazor initialize a date on page load
body: <pre><code>&lt;div class=&quot;wrap-input100 validate-input&quot;&gt;
      &lt;span class=&quot;label-input100&quot;&gt;Date of Birth&lt;/span&gt;
      &lt;InputDate class=&quot;input100&quot; id=&quot;birthday&quot; name=&quot;birthday&quot; @bind-Value=&quot;CurrentCustomerSubmission.DateOfBirth&quot; max=&quot;@DateTime(DateTime.Now.Year-60,1,1).ToString()&quot; /&gt;
      &lt;ValidationMessage For=&quot;@(() =&gt; CurrentCustomerSubmission.DateOfBirth)&quot; /&gt;
  &lt;/div&gt;
  </code></pre>
  <p>What I am trying to do is have the initial value of the date to be</p>
  <p>1/1/(current year - 60)</p>
  <p>I can't seem to figure this out.</p>