check null date field in dynamics 365 finance

How to check null date field in dynamics 365 finance and operations using x++ code