I'm trying to return dates from my server to a page and I'm using DateTime class.
The order I'm trying to return is:
For example "last month"
1 jan - 7 jan - 8 jan - 14 jan - 15 jan - 21 jan - 22 jan - 28 jan
Any idea how to do it with datetime class.