X++ Get Start Date and End Date of Month
Use following methods to get Month Start Date and Month End Date. Pass any date of month in parameter.
Month Start Date :
Month End Date :
Month Start Date :
TransDate dateInMonth=today();
TransDate firstDateOfMonth;
;
firstDateOfMonth = DateStartMth(dateInMonth);
Month End Date :
TransDate dateInMonth=today();
TransDate endDateOfMonth;
;
endDateOfMonth= endmth(dateInMonth);
Thank for your share
ReplyDelete