Recursive dates generator