Here you can find the source of isDataOra(String date)
public static boolean isDataOra(String date)
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Date; public class Main { private final static SimpleDateFormat _dataOra = new SimpleDateFormat("dd/MM/yyyy - HH:mm"); public static boolean isDataOra(String date) { Date d = toDateTime(date); return d != null && _dataOra.format(d).equals(date); }/* w w w.j a v a 2 s . c om*/ public static Date toDateTime(String date) { Date d = null; try { d = _dataOra.parse(date); } catch (Exception e) { } return d; } }