Date/Time storage

 

Hello,

I would like to know how is it possible to do a condition on a date: for example if (considering that 2 datetime values are store in  variables call Date1Val and Date2Val ):

if (Date1Val < DateVal2 - 5Min || Date1Val > Date2Val + 5Min) ...

My problem is concerning the fact to add or to minus the 5 minutes....

Somebody could help me please....

 

Tahnk you 

 

I resolve my problem.... It was easy in fact.. I had only to add the number of seconds I wish for.

Reason: