Answers for "html input date php date today"

PHP
2

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
3

html input date php date today

//Laravel
<input type="date" class="form-control" value="{{ date("Y-m-d") }}">

//PHP  
<input type="date" class="form-control" value="<?=date("Y-m-d");?>">
Posted by: Guest on March-09-2022

Browse Popular Code Answers by Language