Thank You DBlank. I will explain to you the full scenario,what i wish to achieve.
I am trying to find out the lunch out of each employee per day.
so i want to reset the lunchout(datetime) variable for each employee per day.
The same concept is applicable to getin(datetime) variable also.
my report is grouped by department,empid,date.
This is the formula i'm using for getting lunchout,
if ((ShiftDateTime({EVENTS.EVENT_TIME_UTC},"UTC,0","") IN PlannedTime1 TO PlannedTime2) AND ({READER.TIMEATT} =2))
then
DateTimevar lunchout := ShiftDateTime({EVENTS.EVENT_TIME_UTC},"UTC,0","");
lunchout;
And for restting i;m using the following formula,
WhilePrintingRecords;
DateTimeVar lunchout := DateTime(1900,1,1,0,0,0);