Use a flow logic, if you are not equipped with java…
look at the com.util.Date java API. and it has all inbuilt methods that you can use.
I would code some thing like this…
assume today and myDate are objects of type Date…
boolean isafter = today.after(myDate);
boolean isbefore = myDate.after(today);
if (isafter)
idc.insertAfter(“result”, “1”); //Yesterday or lower
else if (isbefore)
idc.insertAfter(“result”, “-1”); //Tomarrow or higher
else
idc.insertAfter(“result”, “0”); // Today
Hope this helps…
#Integration-Server-and-ESB#webMethods#Flow-and-Java-services