Hello to all the community, I need that my datepicker can have the american timetable year, month, day because it appears in latin time, how can I configure that.
I also need that my datepicker shows like this 2022-03-02 and not to show 2022/03/02 can you help me?
CodePudding user response:
In the Angular Material documentation you can see how to configure the datepicker, at internationalization section: https://material.angular.io/components/datepicker/overview#internationalization
See also MomentDateModule formats section:
You can pick from the parse formats documented here: https://momentjs.com/docs/#/parsing/string-format/