Solved

Java Date datatype.Y2000 compliant ?

Posted on 1998-03-20
2
188 Views
Last Modified: 2010-04-16
Concerning the java datatype "Date" : Does the current JDKs provide a way to support 4 digits (to be Y2000 compliant) ? What are the plans for the next JDKs release ?
0
Comment
Question by:ta
2 Comments
 

Author Comment

by:ta
ID: 1233708
Edited text of question
0
 
LVL 16

Accepted Solution

by:
imladris earned 50 total points
ID: 1233709
The Date class itself doesn't provide input routines. Its design is flawed in a number of ways, in my opinion, mostly due to some quirky argument and result range choices. However, it should have no problem with Y2K stuff. Internally the class counts the number of milliseconds since Jan 1st, 1970. So that will be OK. Argument wise the year is specced as the number of years since 1900. So for the year 2001, the argument will simply be 101. How that is input w.r.t. the user is up to you.

0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question