I am utilizing Angular's localization service version 8.3.28 to support English, Spanish (Mexico) with code es-MX
, and Spanish (Spain) with code es-SP
While using the date
pipe:
{{ foo.Date | date: 'shortDate' }}
The dates are changing to the correct locale without any issues, but it appears that Angular is using 24-hour time for Spanish regardless of the region.
Spanish (Mexico) requires a 12-hour format, whereas Spanish (Spain) needs a 24-hour format.
How can I modify the default time format specifically for Spanish (Mexico)?
I am attempting to avoid creating a custom date
pipe.