Using Java Date class...
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
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.
This question is in the General Section. Responses must be helpful and on-topic.