|
Oct 01
|
Use the parse() method of the SimpleDateFormat class. You can use setLenient(false) to force strict parsing.
DateFormat dateFormat =
new SimpleDateFormat("hh:mm dd/MM/yy");
dateFormat.setLenient(false);
Date d = dateFormat.parse("06:23 01/05/06");



Recent Comments