Microsoft Dynamics Ax, Application Integration Framework, X++ programming, AX 2009 , 2012.Ax Rainier or version 7, Enterprise portal, SharePoint , BI Tools, OLAP, Performance Tuning, SSRS,SSIS,SSAS, Workflow.

Saturday, December 1, 2012

How to get first day date of month in axapta

If you want to get first date of month then this is first simple or forceful method to get it. You can try following code in job.

TransDate AnyDate=systemDateget();   
TransDate FirstdateOfMth;    ;    

This is second method to get first day of month. DateStartMth is standard global method to get first date of month.

TransDate AnyDate=today();   
TransDate FirstdateOfMth;    ; 

Systemdateget and today method will give you current system date.