Validate Date is Null

We often need to check check date time is null or not during coding. Dynamics AX provide global class which contains some helper methods one of them is datenull. You can use it compare date whether is null or not.

 Global::DateNull()  

There is another way to achieve it but this is not correct approach but it can be used.

 mydate != mkdate(1,1,1900)  

Here we are just checking date is set to minimum value  or not.

Comments

Post a Comment

Popular posts from this blog

X++ Get Start Date and End Date of Month

Dynamics AX 365 : The name does not denote a class, a table or an extended data type

Error while setting server report parameters. Error message: The permissions granted to user are insufficient for performing this operation. (rsAccessDenied)