标签:turn stat imp cat att ali exception EDA static
public static boolean isValidDate(String str) { DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd"); try{ Date date = (Date)formatter.parse(str); return str.equals(formatter.format(date)); }catch(Exception e){ return false; } }
标签:turn stat imp cat att ali exception EDA static
原文地址:https://www.cnblogs.com/sunBinary/p/9971088.html