code: public static boolean isDate(String strDate, String pattern) {
  		try {
  			parseDate(strDate, pattern);
  			return true;
  		} catch (Exception e) {
  			return false;
  		}
  	}
docs: Checks if is date.
  
  @param strDate the str date
  @param pattern the pattern
  @return true, if is date