I was using the isDate function in an app yesterday and noticed that it accepted 200 as a valid year. At first I thought this was a bug, but then I figured 200 IS a valid year, but it surprised me that ColdFusion supports dates that old. So I did some playing around and found these limits for the isDate function:
- 0 is the smallest year allowed.
- 9999 is the largest year allowed.
- The docs say that isDate supports US dates, but I found it supports dd/mm/yyyy format as well, which I wouldn’t consider a valid US date. But what do I know?
On a side note, if you need to support non US dates, you’ll want to use LSIsDate.