I am trying to use the CreateDate(year, month, day) function to create a date after passing it the 3 values and want to throw an error if the date is invalid, e.g, if Feb 30 is passed to it. The problem is that whenever invalid parameters are passed, an error is thrown but I am not able to catch the error and abort. I might not be using the CreateDate appropriately or <CFTRY> and <CFCATCH> properly.
Can someone tell me what could be going wrong?
Thanks.
Can someone tell me what could be going wrong?
Thanks.