title: Inserting Date Value into Date Field using Laravel
body: <p>At the moment, I have a date field on a form that I would like to be able to insert the current value of the current record being edited. No records are missing this date field in my MySQL database, but for some reason, the value of the record will not actually load into the field input, it does however load into the "value" portion of the input field.</p>
  
  <p>At the moment here is my field's code:</p>
  
  <pre><code>&lt;input type="date" name="date" id="date" class="form-control" style="width: 100%; display: inline;" onchange="invoicedue(event);" required value="{{$shipment-&gt;date}}"&gt;
  </code></pre>
  
  <p>And here is the code output:</p>
  
  <pre><code>&lt;input name="date" id="date" class="form-control" style="width: 100%; display: inline;" onchange="invoicedue(event);" required="" value="2018-05-10 00:00:00" type="date"&gt;
  </code></pre>
  
  <p>But this is what it looks like in my browser:</p>
  
  <p><a href="https://i.stack.imgur.com/dZdTp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dZdTp.png" alt="enter image description here"></a></p>
  
  <p>But in my MySQL database table, the field (which is a date field) is formatted as following: 2018-05-12</p>