public void set(Date d) {
    if (d == null) {
      date = new Date();
      return;
    }

    set(d.toEpochDay());
  }
Set the DateWritableV2 based on the year/month/day of the date in the local timezone.
@param d Date value
serde/src/java/org/apache/hadoop/hive/serde2/io/DateWritableV2.java