Solved

Java Date datatype.Y2000 compliant ?

Posted on 1998-03-20
2
181 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

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 …
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

813 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now