Skip to content

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

@Jouroumy

Description

@Jouroumy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions