title: how to display date from database to input type=date in php
body: <p>i have a field from my database which is start/end date sample fields is</p>
  
  <p><strong>sample field</strong></p>
  
  <pre><code>start_date   |   end_date
  2017-04-19   |   2017-04-23
  </code></pre>
  
  <p>what i want to do is to display this data to my:</p>
  
  <pre><code>&lt;input type="date" name= "start_date" value="&lt;?php echo $value['start_date']?&gt;"&gt;
  </code></pre>
  
  <p>but what happen is it doesn't display anything... i tried to use </p>
  
  <pre><code>&lt;input type="date" name= "start_date" value="&lt;?php echo date('Y-m-d',strtotime($value["start_date"]))?&gt;"&gt;
  </code></pre>
  
  <p>but it displays a different date which is not from my database.. any suggestion to display the date data from my db to the input type="date" ??</p>