Date Comaprison in Expression

how can I compare two dates in expression language?

I have a date in the process variable that I want to compare with the current system date and proceed if the difference is less than 2 days else want to put the timer that will run till the target date for trigger and then continue the flow

  • date and time("...") : Creates a date and time value from a String with the format yyyy-MM-dd'T'HH:mm:ss

  • date and time("2015-11-30T12:00:00") : Test if the input is the date November 30th, 2015 at 12:00:00 o’clock

  • [date and time("2015-11-30T12:00:00")..date and time("2015-12-01T12:00:00")] : Test if the input is between the date November 30th, 2015 at 12:00:00 o’clock and December 1st, 2015 at 12:00:00 o’clock