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.

Revisions

  1. Mahmoud Sami created this gist Aug 17, 2016.
    3 changes: 3 additions & 0 deletions HTML 5 Date input with default value php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    // the date fromat must be Y-m-d

    <input type="date" value="<?php echo date("Y-m-d"); ?>">