the code is as follow:
As the datetimeformat is using hh, so according to api
parseStrict
h hour in am/pm (1-12)
so 13 AM should be error, but out of my expectation, the above code can pass!!
why?
any method to check the hour cannot over 12 if using AM/pm?