com.google.gwt.i18n.client.DateTimeFormat can parseStrict 2010/Jan/20 13:10:10 AM?
peter tong
Ranch Hand
Joined: Mar 15, 2008
Posts: 234
posted
0
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?