class PackedLocalDate {

  public static int withDayOfMonth(int dayOfMonth, int packedDate) {
    byte d = (byte) dayOfMonth;
    byte m = getMonthValue(packedDate);
    short y = getYear(packedDate);
    return pack(y, m, d);
  }

}