How can a range of dates be obtained if two end dates are known?
I.E. If I want all dates between 2015-06-07 00:00:00
and 2015-01-01 00:00:00
, how can I do this if both dates have already been made into Date
or Timestamp
objects?
I know this is possible in Python, using the datetime
module:
[str(end_date + timedelta(days=x)) for x in range((start_date-end_date).days + 1)]
What is the equivalent in Java?