The any2date function is actually very strict on the format of the string it takes as an input, as well as it's value. If the string is not proper formatted in X++ it will throw an error. However, the same function in CIL will return an empty date, which will end up in X++ as datenull. So basically it has to do with what the function does when the input is not understood.
↧