title: Preset current date and time in input type "datetime" using php
body: <p>How can I preset the value in datetime input to current date and time using php or javascript?</p>
  
  <pre><code>&lt;input type="datetime-local" name="followupon"&gt;
  </code></pre>
  
  <p>What I have..
  <a href="https://i.stack.imgur.com/WwviQ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WwviQ.jpg" alt="enter image description here"></a></p>
  
  <p>What I want...
  <a href="https://i.stack.imgur.com/hCUlk.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hCUlk.jpg" alt="**enter image description here**"></a></p>