Mail agent and date comparison

Hi!my agent should check if documents date field is over three months old and then mail by doc links would be sent to a specific person.

Problem is HOW to compare dates like this? This is new to me…

Subject: Mail agent and date comparison

date1 := @Date(@Created);date2 := @Date(@Adjust; @Today;0;0;-90;0;0;0);

REM “If less than 90 days have passed then do nothing”;

@If(date2 > date1; @Return(“”); “”);

@MailSend(…)

Subject: RE: Mail agent and date comparison

Thank you Paul! that worked and it’s so simple :smiley:

Subject: Mail agent and date comparison

When you have two NotesDateTime fields, you can use TimeDifference.