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

Conversation

Projects
None yet
4 participants
@lightbringer1991
Contributor

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

@icambron icambron added the Needs docs label Dec 11, 2017

@marwahaha marwahaha changed the title from 3928 add format constants to support output to HTML5 input type formats to [feature] add format constants to support output to HTML5 input type formats (see #3928) Dec 11, 2017

@marwahaha marwahaha referenced this pull request Dec 14, 2017

Merged

Add HTML5 formats #478

@marwahaha marwahaha removed the Needs docs label Dec 14, 2017

@marwahaha marwahaha merged commit e6ac249 into moment:develop Dec 17, 2017

3 checks passed

Title Your title looks great!
continuous-integration/travis-ci/pr The Travis CI build passed
Details
licence/cla Contributor License Agreement is signed.
Details

@lightbringer1991 lightbringer1991 deleted the lightbringer1991:3928-support-html5-formats branch Dec 17, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment