Two Digit Years in CFMX

As a rule, don’t use two digit years – full four digit years are much safer. But if you do use two digit years, be aware that ColdFusion MX has changed the way they are processed. In CF5 and earlier years 0-29 are previous century and 30-99 are current century. In CFMX years 0-20 are previous century and 21-99 are current century. So, if you are using a two digit year (like 25) your calculations may be off by a century. Bottom line, use four digit years. (Applies to: ColdFusion MX)

Leave a Reply