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

Modifying an existing format / Adding a format for all Locales #673

Open
Jouroumy opened this issue Apr 15, 2021 · 0 comments
Open

Modifying an existing format / Adding a format for all Locales #673

Jouroumy opened this issue Apr 15, 2021 · 0 comments

Comments

@Jouroumy
Copy link

Jouroumy commented Apr 15, 2021

Hi,
I actually tried to get dates with this format (04.05 -> 5 april ) but it returns that as an hour
I tried to do Sugar.Date.getLocale('en').addFormat('{month}\.{day}') and also tried without the backslash

And I have another questions, I am actually working with multiples languages and I wanted to know if there is a way to add new format for multiple languages
I tried this, but it doesn't work Sugar.Date.getAllLocales().addFormat({month}-{day})

Thanks for your answer

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

1 participant