Avoid 2 Digit Years

ColdFusion is very flexible and accommodating when it comes to working with dates, and almost any date format you can imagine will be interpreted and processed correctly. This is even true in the case when two digit years are provided – ColdFusion will usually process the date correctly (assuming that years 00-29 are actually 2000-2029, and years 30-99 are actually 1930-1999). But, as a rule, don’t rely on this – always specify full four digit years to prevent ambiguity and possible future problems. (Applies to: ColdFusion All)

Leave a Reply