Monday, 22 July 2013

job for date difference

static void Job7(Args _args)
{

    CaseDetail CaseDetail;
    CaseDetailBase CaseDetailBase;
    int64 a,b;
    utcDateTime c,d,e;
   
    select CaseDetail where CaseDetail.CaseId == "00004_1002";
   { d = CaseDetail.SLALatestCompletionDateTime;
       e = CaseDetail.serviceLevelAgreementStartDateTime();
       info(strfmt("%1" ,d));
       info(strfmt("%1" ,e));

    }
     a=  DateTimeUtil::getDifference(d,e);
    b= a/(24*60*60);
    info(strfmt("%1" ,a));
   
     info(strfmt("%1" ,b));
}

No comments:

Post a Comment