指定时间的当月第一天

@param localDate 时间
@return localDate
326944
public static LocalDate firstDay(LocalDate localDate) {
        return LocalDate.of(localDate.getYear(), localDate.getMonth(), 1);
    }
1275217
private LocalDate childAdjustment(final LocalDate date) {
        if (date == null) {
            return date;
        }
        return date.plusYears(typicals.gapBetweenChildren())
                .withMonthOfYear(1).withDayOfMonth(1);
    }
661565
public static Date toUtcDate(TimeZone browserTZ, TimeZone targetTZ, String localDate) {
        if (localDate == null) {
            return null;
        }

        return toUtcDate(browserTZ, targetTZ, Long.valueOf(localDate));
    }
991008
@Override
    @SuppressWarnings("unchecked")
    public ChronoLocalDateTime<InternationalFixedDate> localDateTime(TemporalAccessor temporal) {
        return (ChronoLocalDateTime<InternationalFixedDate>) super.localDateTime(temporal);
    }
571804
public function plusMonths(int $months) : LocalDate
    {
        $month = $this->month + $months - 1;

        $yearDiff = Math::floorDiv($month, 12);
        $month = Math::floorMod($month, 12) + 1;

        $year = $this->year + $yearDiff;

        return $this->resolvePreviousValid($year, $month, $this->day);
    }
1127182
public static LocalDateTime leftShift(final LocalTime self, LocalDate date) {
        return LocalDateTime.of(date, self);
    }
823210
function(date) {
        if (this._calendar.name !== date._calendar.name) {
            throw (_exports.local.differentCalendars || _exports.regionalOptions[''].differentCalendars).
                replace(/\{0\}/, this._calendar.local.name).replace(/\{1\}/, date._calendar.local.name);
        }
        var c = (this._year !== date._year ? this._year - date._year :
            this._month !== date._month ? this.monthOfYear() - date.monthOfYear() :
            this._day - date._day);
        return (c === 0 ? 0 : (c < 0 ? -1 : +1));
    }
1348565
private static LocalDate calculate3rdWednesday(final LocalDate original) {
        return original.with(TemporalAdjusters.firstInMonth(DayOfWeek.WEDNESDAY)).plusWeeks(2);
    }
1311936
private void getMonthlyRelativeDates(Calendar calendar, int frequency, List<Date> dates)
   {
      long startDate = calendar.getTimeInMillis();
      calendar.set(Calendar.DAY_OF_MONTH, 1);
      int dayNumber = NumberHelper.getInt(m_dayNumber);

      while (moreDates(calendar, dates))
      {
         if (dayNumber > 4)
         {
            setCalendarToLastRelativeDay(calendar);
         }
         else
         {
            setCalendarToOrdinalRelativeDay(calendar, dayNumber);
         }

         if (calendar.getTimeInMillis() > startDate)
         {
            dates.add(calendar.getTime());
            if (!moreDates(calendar, dates))
            {
               break;
            }
         }
         calendar.set(Calendar.DAY_OF_MONTH, 1);
         calendar.add(Calendar.MONTH, frequency);
      }
   }
491353
protected final LocalDate createLocalDate(final String dateString) {
        if (dateString == null || dateString.isEmpty()) {
            return null;
        }
        final DateParser parser = new DateParser(dateString);
        return new LocalDate(parser.getEstimateCalendar());
    }
249562
public static int getStartWeekOfMonth (@Nonnull final LocalDateTime aDT, @Nonnull final Locale aLocale)
  {
    return getWeekOfWeekBasedYear (aDT.withDayOfMonth (1), aLocale);
  }
887318
public static Integer getRemainingDayOfMonth(Date date) {

        if (date == null)
            return null;

        // 月天数
        int days = getDayNumOfMonth(date);
        // 第几天
        int dayOfMonth = getDayOfMonth(date);

        return days - dayOfMonth;
    }
1209012
public final void showDate(LocalDate date) {
        requireNonNull(date);
        if (!dayPage.isHidden()) {
            selectedPage.set(getDayPage());
        } else if (!weekPage.isHidden()) {
            selectedPage.set(getWeekPage());
        } else if (!monthPage.isHidden()) {
            selectedPage.set(getMonthPage());
        } else if (!yearPage.isHidden()) {
            selectedPage.set(getYearPage());
        }

        setDate(date);
    }
585587
public static LocalDateTime firstDay(String localDate) {
        LocalDateTime parse = parse(localDate, DEFAULT_PATTERN);
        return LocalDateTime.of(parse.getYear(), parse.getMonth(), 1, 0, 0, 0);
    }
27072
public static LocalDateTime dateToLocalDateTime(Date date) {

        if (date == null) {
            return null;
        }
        return LocalDateTime.ofInstant(date.toInstant(), ZoneId.systemDefault());
    }
1311500
public static LocalDate addDays(String localDate, long days) {
        LocalDate parse = parse(localDate, DEFAULT_PATTERN);
        return parse.plusDays(days);
    }
433867
public LocalDate getEndAsLocalDate() {

        PlainDate date = this.getEndAsCalendarDate();
        return ((date == null) ? null : date.toTemporalAccessor());

    }