title: How to convert a date created from timestamp in yyyy-MM-dd format
body: <p>Suppose to have a date:</p>
  
  <pre><code> var date_not_formatted=new Date(timestamp);
          var dateFormatted=new Date(date_not_formatted.getFullYear()+"-"+(date_not_formatted.getMonth()+1)+"-"+date_not_formatted.getDate());
  </code></pre>
  
  <p>I put this data in a input type date and I read in the console this warning:</p>
  
  <pre><code>The specified value "Sat Sep 15 2018 00:00:00 GMT+0200 (daylight savings time
   dell\u2019central Europe)" does not conform to the required format, "yyyy-MM-dd".
  </code></pre>
  
  <p>Anyone can help me?</p>