Date calculation in rules


sorry I’m not very familiar with java. I’m using C# at work.

How to calculate times and Dates in OH 1.8 ? I need to compare to Dates / times in rules…

I have to parse a Date like this “13.06.2016” and compare it with tomorrow.

  var SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("dd.MM.yyyy");
  var Date dateGelb = DATE_FORMAT.parse(mGelb) // 13.06.2016

But how to compare it to today?