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

Should I remove moment in favor of a simpler solution? #1

Open
lightergrey opened this issue Oct 21, 2016 · 0 comments
Open

Should I remove moment in favor of a simpler solution? #1

lightergrey opened this issue Oct 21, 2016 · 0 comments
Labels

Comments

@lightergrey
Copy link
Owner

(new Date()).toLocaleString('en-us', {month: 'long', day: 'numeric', year: 'numeric'});
//=> August 17, 2016

via https://twitter.com/sindresorhus/status/783366849954213888
and https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant