0

in HTML, working with input date, I need to display today's date in input date

<tr>
  <td>Date</td>
  <td><input id='input-date' type='date' value=getDate() onchange=''></td>
</tr>
<tr>
ariana
  • 33
  • 7
  • 2
    Does this answer your question? [How to set input type date's default value to today?](https://stackoverflow.com/questions/6982692/how-to-set-input-type-dates-default-value-to-today) – Full Stop Feb 26 '20 at 06:03

1 Answers1

0

this code work very well and simply try this code

  <input type="date" value="<?php echo date("Y-m-d"); ?>" name="current_date">
Blueberry
  • 31
  • 10