Comparing against a date range in Developer

I need assistance with creating a flow service which performs the following:

  • Loops the file’s service date
  • Get the service date and compare whether the date is between the range of 1900-01-01 through 2079-06-06.
  • If the date does not fall between this range then, we will set the date to 01-01-1900 (for example).

If anyone can assist, I am confused on how to compare against a date range. Thanks for any assistance.

Create a java service to check if the date is between 2 dates (date range). You can use java.util.Date.after() and before() methods to achieve this.