Skip to content

Instantly share code, notes, and snippets.

@LarrySul
Last active July 21, 2019 18:37
Show Gist options
  • Save LarrySul/205fb6ea8d5603628ced458d578f590f to your computer and use it in GitHub Desktop.
Save LarrySul/205fb6ea8d5603628ced458d578f590f to your computer and use it in GitHub Desktop.
<input
type="month"
value="2019-07"
/>
<!-- you need to give a default value of year - month as shown above -->
<input
type="week"
value="2019-W2"
/>
<!-- Default values should be added to a week input tag -->
<input
type="datetime-local"
value="2019-07-21T05:48:00"
/>
<!-- Default values like year-month-day with the T standing for time which can be from hour-minute-seconds -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment