title: How to convert Tue Jun 04 2019 00:00:00 GMT+0530 (India Standard Time) into date format in vue js
body: <p>I am using vue2-datepicker but i can't save date into database because the date format binded as Tue Jun 04 2019 00:00:00 GMT+0530 (India Standard Time)
  How can i solve this?</p>
  
  <p>my code is </p>
  
  <pre><code> &lt;date-picker 
        type="date"
        :lang="lang" 
        v-model="form.join_date" 
        &gt;
   &lt;/date-picker&gt;
  </code></pre>
  
  <p>but console.log(this.form.join_date) is Tue Jun 04 2019 00:00:00 GMT+0530 (India Standard Time)</p>
  
  <p>How can i get date like '2019-06-18' </p>
  
  <p>Anyone can help me?
  thanks in advance</p>