Skip to main content

Posts

Showing posts with the label How to Get current date in differert way by axapta

Get current date in differert way by MSD axapta

How to Get current date in differert way by axapta info(date2str(today(),123,2,2,2,2,4)); //This method will show you date of the machine. There is no support of time. info(date2str(systemdateget(),123,2,2,2,2,4)); //This method will show you current system session date.You can change session date under tool //session menu. //Following are mehtod for to show date with time . Juse use and see it. info(date2str(DateTimeUtil::date(DateTimeUtil::getSystemDateTime()),123,2,2,2,2,4)); info(date2str(DateTimeUtil::date(applyTimeZoneOffset(DateTimeUtil::getSystemDateTime(), DateTimeUtil::getUserPreferredTimeZone())),123,2,2,2,2,4));