changeDay static method

DateTime changeDay(
  1. DateTime referenceDate,
  2. int dayCount
)

Change day of referenceDate.

Implementation

static DateTime changeDay(final DateTime referenceDate, final int dayCount) =>
    DateTime(referenceDate.year, referenceDate.month,
        referenceDate.day + dayCount);