title: How to remove dateT~~ in javascript?
body: <p>I wrote code for getting the coming Saturday. So I wrote like this and the result is <code>2020-03-07T04:00:48.306Z</code>. I found the dateT~~. I just only need the date. I can use the split method, but I don't wanna use this. is there any other way?</p>
  
  <pre><code>function getSaturday(d) {
      d = new Date(d);
      var day = d.getDay(),
          diff = d.getDate()+5 - day + (day == 5 ? 7:1); 
      console.log(diff);
      return new Date(d.setDate(diff));
    }
  </code></pre>