Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    How to customize calendar limits?

    In my context I need to change the default limits of calendar.

    How do I restrict time range for between 8:00 and 17:00 instead 0:00 and 24:00?
    How do I restrict the calendar only for wednesdays?

    Are these possible today?

    Carlos

    #2
    i need this too, has anyone done it?

    Comment


      #3
      //change time limit
      calendar.setWorkdayStart("8:00");
      calendar.setWorkdayEnd("17:00");

      //change start day
      calendar.setStartDate(DateUtil.getAbsoluteDate(new RelativeDateRangePosition("+3D"), new RelativeDate("$startOfWeek")));

      Comment

      Working...
      X