Axapta หาวันที่สิ้นเดือน
- static void LastOfMonth(Args _args)
- {
- TransDate transDate=today();
- TransDate LastOfMth;
- ;
- //LastOfMth=endmth(mkdate(1,1,2014));//To enter date using business logic.
- //LastOfMth = str2date(strfmt("%1/%2/%3", 1, intMonth-1, intYear), 123);
- //transDate = str2date(date2str(LastOfMth,123,2,4,2,4,4), 123);
- LastOfMth=endmth(transDate);
- info(date2str(LastOfMth,123,2,4,2,4,4));
- }
No comments:
Post a Comment