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

Recommended way to get uppercase short month name? #765

Closed
paulyoung opened this issue May 2, 2013 · 3 comments
Closed

Recommended way to get uppercase short month name? #765

paulyoung opened this issue May 2, 2013 · 3 comments

Comments

@paulyoung
Copy link

To get this format 02-MAY-2013 I'm currently doing this:

moment().format('DD-MMM-YYYY').toUpperCase();

Is there a better way?

I'm aware that I could introduce some custom month abbreviations, but I currently only want to apply the formatting to this instance of the date.

@timrwood
Copy link
Member

timrwood commented May 2, 2013

Yep, that's the best way!

@paulyoung
Copy link
Author

Thanks.

@mcandre
Copy link

mcandre commented Apr 17, 2019

:/

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

No branches or pull requests

3 participants