addDaysToDateTime static method

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

Implementation

static DateTime addDaysToDateTime(DateTime date, int days) {
  var data = new DateTime(date.year, date.month, date.day + days, date.hour,
      date.minute, date.second);
  return data;
}