Code to find the last day of month in Ax.
static void LastOfMonth(Args _args)
{
TransDate transDate=today();
TransDate LastOfMth;
;
//LastOfMth=endmth(mkdate(1,1,2014));//To enter date using business logic.
LastOfMth=endmth(transDate);
info(date2str(LastOfMth,123,2,2,2,2,4));
}
static void LastOfMonth(Args _args)
{
TransDate transDate=today();
TransDate LastOfMth;
;
//LastOfMth=endmth(mkdate(1,1,2014));//To enter date using business logic.
LastOfMth=endmth(transDate);
info(date2str(LastOfMth,123,2,2,2,2,4));
}
No comments:
Post a Comment