1845   AM/PM designator does not match hour number

Cause

This error occurs when the time parsing methods of the primitive types use a time format picture that finds a 24-hour clock hour element greater than 12 together with a PM designator or a 24-hour clock hour element greater than or equal to 12 together with a AM designator; for example, if the pic parameter passed to the parseWithPicAndLcid method of the Time primitive type is "HH:mm tt" and the source parameter is "23:00 AM".

Action

Change your application logic to handle this invalid input.