Kajona\System\System\DateRange

Class to calculate date ranges

Synopsis

class DateRange {
}

Methods

private

  • addInterval() — Adds a specific interval to the provided date. Returns a new date object

public

  • getDateRange() — The method generates an array containing start and enddates. Basically the method start at the startdate and adds the interval to the startdate until the enddate is reached. In the following an example:
  • getIntervalByString()
  • transformToOldFormat() — Transforms the result of the getDateRange format to another format