I am trying to write a scheduler component in which user can give me date range in a given format like find all records which are 1 month old.

or give me all records which in between two date range or give me all records on given month.

I have API to which i can give dates as range but my code will be running as scheduler so i need a component which can generate date based on today's date to create two dates as range and can pass to APIs of next system.

Is there any util kind of jar is available which can give me date after some calculation in required format.


Get two days old date in yyyy-mm-dd format Get 1 month old date from today in yyyy-mm-dd format etc.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.