Subtract month

Hi All,

Is there any method in AX 4.0 which can subtract months? i have a report where i need to get the date and start printing the reports from 12 months before that date’s month.



Hi gayatri,

You can use Datemthfwd function… to add or substract months…

Below code helps you to go back 12 months…

static void Job16(Args _args)



info(strfmt(’%1’, datemthFwd(systemdateget(), -12)));