Answers for "how to display a date from html with php"

PHP
0

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

displaying dates using php code

// Output — 11:03:37 AM
echo date('h:i:s A');
 
// Output — Thursday, 11:04:09 AM
echo date('l, h:i:s A');
 
// Output — 13 September 2018, 11:05:00 AM
echo date('d F Y, h:i:s A');
 
?>
Posted by: Guest on May-16-2021

Code answers related to "how to display a date from html with php"

Browse Popular Code Answers by Language