Improved the date generation to support time and changed it to return only dates in the interval of the last 4 years