Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

DateTime validation: True/False

$
0
0

Hello.

I'm developing a class who validate users input for dates. The output is just the input date, but if the user put in a wrong date the output should be null.

In the testing phrase I tried to set in wrong dates like 31/09/2013, and also 30/02/2013, 31/02/2013. The output from these dates will be the last date of the month: 31/02/2013 will be 28/02/2013 in output, but not NULL.

The output will be NULL if the input is from 32nd. day of the month.

Does some baseclass exist who will give me output if the date is wrong?


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>