Monday 13 October 2014

new way to calulate the number of day in any month of the year

static void Job30(Args _args)
{

    System.DateTime     now;
    str                 getDateStr;
    int n;
    ;
   
    //now = System.DateTime::DaysInMonth(2000,6);
   
     n = System.DateTime::DaysInMonth(2000,6);
   // getDateStr = now.ToString();
   // info("It is now : "+getDateStr);
    info(strFmt("%1",n));


}


please try this and see the diffrence:

1 comment:

intercompany PO multiple product receipt by x++

public void processStampICPO(PackingSlipId _deliveryNote,                             Transdate _deliverydate,                             ...