Java Date Value Check isDate(String date)

Here you can find the source of isDate(String date)

Description

is Date

License

Open Source License

Declaration

public static boolean isDate(String date) 

Method Source Code

//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;
        }
    }
}

Related

  1. isDate(final String date)
  2. isDate(final String date)
  3. isDate(final String dateString)
  4. isDate(final String strDate, final String pattern)
  5. isDate(Object object)
  6. isDate(String dateStr, String dateFormat)
  7. isDate(String dateString)
  8. isDate(String dttm, String format)
  9. isDate(String input)