Hello,
I cannot set the locale to "de" to remove the AM and PM format.
I tried this via the locale property and the moment global locale method.
Did you import 'moment/locale/de'?
and tried with locale='de'
I've got the same problem. I've imported moment/locale/de, but locale="de" has no effect …
You need to call moment.locale('<your_local>'); after importing locales.
Thanks for answer.
import 'moment/locale/pl';
...
locale="pl"
The docs could say that importing the locale is needed. Also it could be specified in this example (locale example)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
Did you import 'moment/locale/de'?
and tried with locale='de'