title: Argument of type 'Date' is not assignable to parameter of type 'string'
body: <p>I am working on Angular2-Meteor project and I am getting this </p>
  
  <blockquote>
    <p>Argument of type 'Date' is not assignable to parameter of type
    'string'.</p>
  </blockquote>
  
  <p>error when I wrote this function to set value in date.</p>
  
  <pre><code>start: startOfDay(new Date(attendance.dayAt)),
  </code></pre>
  
  <p>I have tried to set the type as <strong><em>Date</em></strong> but won't work how can I resolve this error? </p>