Bug 15521

GemStone/S

6.7.2.1, 6.7.2, 6.7.1, 6.7, 6.6.5, 6.6.4, 6.6.3.3, 6.6.3.2, 6.6.3, 6.6.2, 6.6.1, 6.6, 6.5.8, 6.5.7.5, 6.5.7, 6.5.6, 6.5.5, 6.5.4, 6.5.2, 6.5.1, 6.5, 6.3.1, 6.3, 6.2.x, 6.2, 6.1.6, 6.1.5, 6.1.x, 6.0.x, 5.1.5.1, 5.1.5, 5.1.4, 5.1.3.1, 5.1.3

All

Date does not restrict year inputs

Although the supported range for Dates are dates after
December 31, 1901, Date objects are created without errors
for other input year values.

This means that when creating a date without specifying a
input format, which uses the default format, DD/MM/YYYY,
if you provide only a two-digit year, it will treat the 2
digits as the full value of the year, and will create a
date in the first century.


                

Last updated: