title: How to convert Date to String into the format yyyy-mm-dd in typescript
body: <p>How to convert Date to String into the format <strong>yyyy-mm-dd</strong> in typescript</p>
  
  <p>Now I am getting the date as <strong>Fri Mar 24 2017 00:00:00 GMT-0400 (Eastern Daylight Time)</strong></p>
  
  <p>I only need date in the format <strong>"2017-03-24"</strong>
  from that and without any timezones and timezone conversions</p>