I just started using my calendar and it's showing tomorrow as the correct date. There is no setting to correct that. Any suggestions on how I can do this.
I am using the calendar functionality in one of my methods. The Calendar.Year doesn seem to be working , it shows the wrong date .
MyCal.get(Calendar.DAY_OF_WEEK) --> Shows 5 (which is correct today .
I want to deal with date and time separately in my android app, by saying separately I mean setting the time without affecting the date and vice versa, So, when setting the time only:
Calendar calendar = Calendar.getInstance();
calendar.set(Calendar.YEAR + 1990, Calendar.MONTH, Calendar.DAY_OF_MONTH, hours, minutes, 0);
and it works perfectly, but when setting the Date only: