title: Unable to use new Date() in Typescript - TS2554: Expected 1-2 arguments, but got 0
body: <p>I am trying to use a js date with Ts and seemingly unable to .</p>
  <h2>Usage</h2>
  <pre><code>&lt;Date variant=&quot;body2&quot;&gt;on {format(new Date(), 'dd/MM/yyyy')}&lt;/Date&gt;
  </code></pre>
  <h2>Error</h2>
  <pre><code>Expected 1-2 arguments, but got 0.  TS2554
  
    &gt; 162 |             &lt;Date variant=&quot;body2&quot;&gt;on {format(new Date(), 'dd/MM/yyyy')}&lt;/Date&gt;
          |                                              ^
      163 |           &lt;/&gt;
      164 |         )}
      165 |       &lt;/UploadBox&gt;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/LAon0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LAon0.png" alt="enter image description here" /></a></p>