Format the system date in Dynamics AX

Format the system date in Dynamics AX

MCP · Azure DevOpsYour delivery board, readable by an agentMCP · DataverseOne consent, and the data layer opensMCP · Dynamics 365 F&OConnecting F&O to an agent Microsoft hasn’t documented
Archive recovery note: the supplied Blogspot backup did not contain a separate saved page for this older entry. The text available in its archive/listing capture has been preserved and flagged for a later completeness check.
The following code show the dates in format like December 22, 2011 static void datesJob(Args _args) {     str dd, mm, yy, dt;     dt = date2Str(systemDateGet(), 123, DateDay::Digits2, DateSeparator::Slash, DateMonth::Digits2,            DateSeparator::Slash, DateYear::Digits4);     dd = substr(dt, 0, 2);     mm = substr(dt, 4, 2);     yy = substr(dt, 7, 4);     dt = mthname(str2int(mm)) + ' ' + dd + ', ' + yy;     print   dt;     pause; }
Previous article← Dynamics AX – Use definition groups to import data
Discussion

Ask a question or leave feedback

This is a review interaction. The WordPress version will store, thread and moderate comments.

Thanks — submitted for moderation in this review.
Search the whole site · Ctrl/⌘ + K