removeDaysToDateTime static method

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

Implementation

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