General Question
Using Java Date class...
Asked by knight (35)
February 29th, 2008
Hi,
I want to use deprecated java date class.
When I run:
Date d1 = new Date(108,2,19); System.out.print(d1.getDate()+”/”+d1.getMonth()+”/”+d1.getYear());
I get 19/2/108. But I expect to get the year 2008 like written in
http://java.sun.com/j2se/1.4.2/docs/api/java/util/Date.html#Date(int,%20int,%20int)
My question is: how can I get the year 2008 with deprecated date class?
I mean give 108 in constructor and get 2008.
Thanks in advance Arshavski Alex.
Observing members:
0
Composing members:
0
1 Answer
Answer this question
This question is in the General Section. Responses must be helpful and on-topic.
Have a question?
Ask Fluther!