Showing posts with label String formated date comparision. Show all posts
Showing posts with label String formated date comparision. Show all posts

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");   
   
}