Is it possible to translate the time period (AM, PM) from ion-datetime? I have successfully translated the other text (cancelText, dayNames etc), but there is no reference for the time period in the documentation. See here: input properties.
You can use Moment.js but only for “Parse, validate, manipulate, and display dates in JavaScript” you can not pass it in the ion-datetime.
The datetime picker provides the simplicity of selecting an exact format, and persists the datetime values as a string using the standardized ISO 8601 datetime format. However, it’s important to note that ion-datetime does not attempt to solve all situtations when validating and manipulating datetime values.
Date handling is one of those things that seems really simple, so everybody tends to just roll their own. It isn’t simple at all, and there’s not much point in bothering with figuring out which edge cases some rando on the internet forgot to test. Just use date-fns.