duplicate of https://stackoverflow.com/questions/61188339/how-to-set-any-day-week-month-as-default-view-in-zk-calendar answered / accepted there
cor3000 ( 2020-04-21 10:39:49 +0800 )edit-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello All,
I'm using ZK CE-9.0.0 & zk-calendar-2.1.5.
Whenever I open the calendar by default it displays today/current week/current month as per its mold. If I want to navigate to other day/week/month, I have to use the buttons provided.
My requirement is, it should display the day/week/month specified by my program. Specified date can be in future or in past. That should be displayed by default. Can anyone tell me how can I achieve this?
Thanks,
RAS
ZK Calendar can be initialized as explained on the first page (2nd paragraph) of ZK Calendars Essentials
E.g. you can switch to the month view by calling:
calendars.setMold("month");
or specify a 7-days-view by calling:
calendars.setMold("default");
calendars.setDays(7);
The current date can be set by:
calendars.setCurrentDate(aDate);
Please also refer to the zk calendar javadocs
duplicate of https://stackoverflow.com/questions/61188339/how-to-set-any-day-week-month-as-default-view-in-zk-calendar answered / accepted there
cor3000 ( 2020-04-21 10:39:49 +0800 )editAsked: 2020-04-13 20:45:36 +0800
Seen: 9 times
Last updated: Apr 14 '20
zk-calendar-2.1.5 downloaded from (https://www.zkoss.org/download/zkcalendar)
rsheth ( 2020-04-13 20:46:00 +0800 )editI increased your Karma so you can post links and upload screenshots if needed
cor3000 ( 2020-04-14 11:27:43 +0800 )edit