class PackedLocalDate {

  public static int withMonth(int month, int packedDate) {
    byte day = getDayOfMonth(packedDate);
    byte _month = (byte) month;
    short year = getYear(packedDate);
    return pack(year, _month, day);
  }

}