How to get Current date time and work date in Microsoft Dynamics Navision.

For getting current date time in NAV create new code unit as show (here) and then write following code in code unit under ‘On Run’ trigger and then run it.



MESSAGE('Current Date : %1 \ Current Time : %2 \ Work DAte :%3',TODAY,TIME,WORKDATE);



OUTPUT:




Comments

Popular posts from this blog

How to use serial.write() in Arduino.

How to make and use web service in Microsoft Dynamics Navision.

How to Generate random rows in dataset using c#.net