@Override
  public void write(DataOutput out) throws IOException {
    WritableUtils.writeVInt(out, (int) date.toEpochDay());
  }
@return time in seconds corresponding to this DateWritableV2
serde/src/java/org/apache/hadoop/hive/serde2/io/DateWritableV2.java