Answers for "date time in php select show in input"

PHP
1

how assign current date to input type date html in php

<input type="date" value="<?php echo date("Y-m-d"); ?>">
Posted by: Guest on December-01-2021
0

current date time in php for input

<input type="datetime-local" name="followupon" value=<?php echo date('Y-m-dTH:i:s'); ?>">
Posted by: Guest on May-03-2021

Browse Popular Code Answers by Language