Solaris 7 3/99 Online Release Notes (SUNWrdm)

Timestamp Constructor Accepts Two-Digit Date (4047499)

java.sql.Timestamp accepts a two-digit year but does not allow for years beyond 1999 (it interprets a two-digit date as 19xx). This problem does not occur when a four-digit year is specified.


Caution - Caution -

The java.sql.Timestamp class extends the java.util.Date class where several methods have been deprecated. To ensure forward compatibility, use the java.text.SimpleDateFormat methods.