Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upSuggest adding method " format" to Date.prototype. #898
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
annevk
Apr 18, 2017
Contributor
I recommend reading https://github.com/tc39/ecma262/blob/master/CONTRIBUTING.md. This is not the right place for proposals.
|
I recommend reading https://github.com/tc39/ecma262/blob/master/CONTRIBUTING.md. This is not the right place for proposals. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
domenic
closed this
Apr 18, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
littledan
Apr 18, 2017
Member
FWIW In the context of the DateTimeFormat, we've discussed the pattern here. cc @zbraniecki @caridy
|
FWIW In the context of the DateTimeFormat, we've discussed the pattern here. cc @zbraniecki @caridy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wendux commentedApr 18, 2017
Since we often need a custom time display format, I suggest adding method " format" to Date.prototype , so we can use the time format symbol like other programming language, such as java.
For example, we can write code like this:
(new Date()).format("yyyy-MM-dd hh:mm:ss")