SyntaxFix
Write A Post
Hire A Developer
Questions
The easiest way for setting the current date is.
<input name="date" type="date" value="<?php echo date('Y-m-j'); ?>" required>