Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mhmoudsami/5760775d0eaafa58e09f5ceeb52b9fb2 to your computer and use it in GitHub Desktop.
Save mhmoudsami/5760775d0eaafa58e09f5ceeb52b9fb2 to your computer and use it in GitHub Desktop.
HTML 5 Date input with default value php
// the date fromat must be Y-m-d
<input type="date" value="<?php echo date("Y-m-d"); ?>">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment