@Deprecated
  public static int dateToDays(java.sql.Date d) {
    return Date.ofEpochMilli(d.getTime()).toEpochDay();
  }
@return time in seconds corresponding to this DateWritableV2
serde/src/java/org/apache/hadoop/hive/serde2/io/DateWritableV2.java