Tag Archives: Dates

Last Weekday of Month

This method will calculate the date of the last specified weekday in the month of the given date. static date lastWeekdayOfMonth(date _date, WeekDays _weekday){ int _endWeekDay, _diff; date _endDate = endmth(_date); ; _endWeekDay = dayofwk(_endDate); _diff = _endWeekDay – _weekday; … Continue reading

Share/Bookmark
Posted in AX 2009, AX 2012, AX 4.0, Microsoft Dynamics AX | Tagged , , | Comments Off

Parsing Date Strings

Dynamics AX provides functions for parsing date strings into a date object but they are limited at best. The following static method uses the .Net date parsing functionality to create a X++ date object from any valid date string without … Continue reading

Posted in AX 2009, AX 2012, AX 4.0, Microsoft Dynamics AX | Tagged , , , | Comments Off