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
Post a Comment