search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

How to change weekly calender

Related article: HTML5 Calendar with Day/Week/Month Views (JavaScript, PHP)
Asked by Anonymous
7 years ago.

How to change weekly calender by using select option for a week timesheet

Answer posted by Dan Letecky [DayPilot]
7 years ago.

You can change the visible week using startDate property:

<select id="week">
  <option value="2016-04-04">Week 14</option>
  <option value="2016-04-11">Week 15</option>
</select>

<div id="dp"></div>

<script>
var dp = new DayPilot.Calendar("dp");
dp.viewType = "Week";
dp.init();

$(document).ready(function() {
  $("#week").change(function() {
      dp.startDate = $(this).val();
      // load events for the new week
      // ...
      dp.update();
  });
});
</script>
Comment posted by Anonymous
7 years ago.

Hi thank you forfending the code i think you have not understood my problem

If i select a week week dates and dates should be display in table depend upon selected week table does have to change can you please help me

Thank you

Comment posted by Anonymous
7 years ago.

Hi thank you for sending the code i think you have not understood my problem

If i select a week, week days and dates should be display in table depend upon selected week table have to change the dates can you please help me

Thank you

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.