AX 2012AX 2012 R3X++

First and last date of last month AX 2012

code calculates the first and last date of the previous month

static void EP_dateMonthInterval(Args _args)

{

date fromDate;

date toDate;

date baseDate = systemDateGet();

;

toDate = dateStartMth(baseDate) – 1;

fromDate = dateStartMth(toDate);

info(strFmt(“%1 – %2”, fromDate, toDate));

}

2,263 thoughts on “First and last date of last month AX 2012