Answers for "set current date to input type date php"

PHP
3

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

get current date from year input php

$date_input = '2003';
$date_output= date( "Y-m-d", mktime( 0, 0, 0, 1, 1, $date_input ));
//date_output = 2003-01-01
Posted by: Guest on July-17-2020

Browse Popular Code Answers by Language