I have a date value in PHP
variable $date
which want to show in the input having type date with following code:
<input type="date" value="<?php echo $date;?>" name="date">
I want to show the value which is in $date
variable in the input textbox of date. Also, user should be able to pick the value from the date picker, which is working fine, but i want a date should be there.
I looked at previous questions, they assign the today's value, but i want to use the value i have in $date
variable.