Here you can find the source of isDate(String date)
public static boolean isDate(String date)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean isDate(String date) { try {//from w ww . j av a 2s . c o m return java.text.DateFormat.getDateInstance().parse(date) != null; } catch (java.text.ParseException e) { return false; } } }