Hello,
I try to verify that an hour is a valid time, why I created a class that does the audit. But the code is giving me an error. So, if you would please help me sort out this problem it would be great. Here is the code
Code:Public static boolean IsHeure(String tm, String frm) { SimpleDateFormat s = new SimpleDateFormat(frm); s.setLenient(false); try { s.parse(tm); / / returns one hours return true; } catch (Exception e) { e.printStackTrace(); return false; } }
Bookmarks