I am using below code,
private static Date date = new Date (2014-1900,11,25);
System.out.println(date);
It is displaying 2014-12-25
. I am unable to understand why it is giving me date as 12
?
and if i give
private static Date date = new Date (2014-1900,12,25);
it is returning 2015-01-25
.
Can anyone help in comprehend this?