I have scheduler where it runs every 30 mins and I need to generate 30 mins(configurable) time difference in date with this pattern yyyy-MM-dd'T'HH:mm:ss.SSS'Z'.
For example
start_date=2020-01-27T08:00:00.000z and end_date=2020-01-27T08:30:00.000z
start_date=2020-01-27T08:30:00.000z and end_date=2020-01-27T09:00:00.000z
start_date=2020-01-27T09:00:00.000z and end_date=2020-01-27T09:30:00.000z
start_date=2020-01-27T09:30:00.000z and end_date=2020-01-27T10:00:00.000z
How to generate with this pattern in Java 8 ?