uzyskać bieżącą datę i czasDlaczego rok bieżący w dniu zapisany jako 3912?
final Calendar c = Calendar.getInstance();
mYear = c.get(Calendar.YEAR);
mMonth = c.get(Calendar.MONTH);
mDay = c.get(Calendar.DAY_OF_MONTH);
mHour = c.get(Calendar.HOUR_OF_DAY);
mMinute = c.get(Calendar.MINUTE);
stworzyć datę bieżącego obiektu
Date toDate;
toDate.setYear(mYear);
toDate.setMonth(mMonth);
toDate.setDate(mDay);
Date endDate = toDate;
podczas drukowania endDate obiekt dostałem
Mon Jan 01 13:11:00 GMT+03:00 3912
dlaczego?
y2.012K błąd jest przyczyną problemów –
Czy Twój czas systemowy rozregulowany roku? – Andrew