Here you can find the source of isDateValue(Class> inValueType)
private static boolean isDateValue(Class<?> inValueType)
//package com.java2s; //License from project: LGPL public class Main { /**//from w ww. jav a 2 s. c om * Check whether the given value is a {@code java.util.Date} * (but not one of the JDBC-specific subclasses). */ private static boolean isDateValue(Class<?> inValueType) { return (java.util.Date.class.isAssignableFrom(inValueType) && !(java.sql.Date.class.isAssignableFrom(inValueType) || java.sql.Time.class.isAssignableFrom(inValueType) || java.sql.Timestamp.class.isAssignableFrom(inValueType))); } }