obj.setDate(5,25,00);
public void setDate(int month, int date1, int year) {
cal.set(Calendar.MONTH,--month);
cal.set(Calendar.DATE, date1);
cal.set(Calendar.YEAR, year);
}
When I try to run the code, the year is being upgrade to show as 01, and not showing as 00 as it should. Same problem with "month" but I did --. Can someone point out what is happening here? Thank you.