addDaysToDate static method

DateTime addDaysToDate(
  1. DateTime date,
  2. int days
)

Returns a DateTime with the added number of days and time set to midnight.

Implementation

static DateTime addDaysToDate(DateTime date, int days) {
  return DateTime(date.year, date.month, date.day + days);
}