java - SimpleDateFormat Parse Exception Thrown Only On Specific Values -


i using following code parse date+time strings:

    simpledateformat sdf = new simpledateformat("mm/dd/yyyy hh:mm:ss a");     sdf.setlenient(false);     date d = sdf.parse(datestr); 

this code works of time...
but, found wouldn't accept value: "3/28/2014 02:39:59 am".
stranger, when change value other hour, works fine.

what missing?

(my code single threaded, compiled jdk7, on timezone utc+2)


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -