title: I need to get time with hours and minutes
body: <p>I have this code:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;input type=&quot;datetime-local&quot; class=&quot;form-control&quot; name=&quot;date&quot; value={{$date}} readonly &gt;
  </code></pre>
  <p><code>$date</code> is with hours and minutes but it just give me an empty time whenever I use it.</p>
  <p>I tried with <code>type=&quot;datetime&quot;</code> and it gives me the time without <code>hh:mm</code>, how can I get it all?</p>
  <hr />
  <p><strong>EDIT</strong>: It worked, <code>$date</code> must be <code>timestamp</code> in the database and the input type must be of type <code>datetime</code></p>