Hi, I have implemented a program and a calendar is part of my app. To implement the calendar I have used the calendar source code which is in the forum. I have a few question about it’s source code and that is, in the constructor of the CalendarCanvas class the code below has been called:
calendar = new CalendarWidget(new Date());
I want that when I create CalendarWidget object in CalendarCanvas class, instead of new Date() parameter which is always date of today the date of 70 days before of today being shown to the user as the date of today for example for each day the program should minuse date of today and date of 70 days before! to do it I had written some code like below but it doesn't work.Could anyone help me to fix this?
calendar = new CalendarWidget(System.currentTimeMillisecond()-70*24*60*60*1000);
And the other question is from the first day of the year till today in the calendar How can I create indexes for all the days? for example for 3 months the last day’s index must be 92, Could anyone tell me how can I create indexes for all the days in a year please?