Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature] add format constants to support output to HTML5 input type formats (see #3928) #4154

Merged
merged 1 commit into from
Dec 17, 2017
Merged

[feature] add format constants to support output to HTML5 input type formats (see #3928) #4154

merged 1 commit into from
Dec 17, 2017

Conversation

lightbringer1991
Copy link
Contributor

@lightbringer1991 lightbringer1991 commented Sep 1, 2017

This is an updated version of #4009 since it has become stale

fixes #3928

Changes:
Added format constants to be used when formatting a moment object to a string that HTML5 input can use, as specified in https://www.w3schools.com/html/html_form_input_types.asp

Supports the following types

  • datetime-local
  • date
  • time
  • week
  • month

@marwahaha marwahaha changed the title 3928 add format constants to support output to HTML5 input type formats [feature] add format constants to support output to HTML5 input type formats (see #3928) Dec 11, 2017
@marwahaha marwahaha merged commit e6ac249 into moment:develop Dec 17, 2017
marwahaha pushed a commit that referenced this pull request Dec 17, 2017
@lightbringer1991 lightbringer1991 deleted the 3928-support-html5-formats branch December 17, 2017 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Moment.js should support HTML5 inputs like datetime-local
4 participants