For Getting First Date of the Month:
Last Date of the Month
TransDate TransDate=today();
TransDate LastOfMth;
LastOfMth=endmth(TransDate);
this.WorkingDays = int2str(dayOfMth(LastOfMth));
static void FirstOfMonth(Args _args)
{
TransDate TransDate=today();
TransDate FirstOfMth;
;
FirstOfMth=mkdate(1,mthofyr(TransDate),year(TransDate));
info(date2str(FirstOfMth,123,2,2,2,2,4));
}
Last Date of the Month
TransDate TransDate=today();
TransDate LastOfMth;
LastOfMth=endmth(TransDate);
this.WorkingDays = int2str(dayOfMth(LastOfMth));
No comments:
Post a Comment