int endDuration,dayCount,hourCount,mintCount,secCount,totalTimeVal,durationVal;
TableName #TableNme;
durationVal = int642int(DateTimeUtil::getDifference(#TableNme.#EndDateTime,#TableNme.#StartDateTime )); totalTimeVal = 24*60*60;
endDuration = durationVal;
dayCount = endDuration / totalTimeVal;
endDuration = endDuration - (dayCount * totalTimeVal );
hourCount = endDuration / 3600;
endDuration = endDuration - (hourCount * 3600);
mintCount = endDuration / 60 ;
secCount = endDuration - (mintCount *60);
info(strFmt("%1 - Days, %2 - Hours ,%3 - Minutes , %4- Seconds",dayCount,hourCount,mintCount,secCount));