Feb 2, 2012

How to compare the date in X++

The following is the simple job to compare the date with the string format date


static void Job74(Args _args)
{
    ;
    if(today() == str2date('20/12/2012',123))
            info("Condition Fullfilled");
    else
          info("Condition not satisfied");   
   
}

No comments: