Dear Dan Letecky,
Thanks for your reply. But it's still not working.I added my code details in the following.
Please , have a look at the code and reply if u have time.
Firstly, i write the following in script .
<script type="text/javascript">
var picker1 = new DayPilot.DatePicker({
target : 'start',
pattern : 'MMM dd/yyyy',
onTimeRangeSelected : function(args) {
dp.startDate = args.start;
dp.update();
}
});
var picker2 = new DayPilot.DatePicker({
target : 'end',
pattern : 'MMM dd/yyyy',
onTimeRangeSelected : function(args) {
dp.endDate = args.end;
dp.update();
}
});
</script>
Second, i write this in table.
<tr>
<td><input type="text" id="start" />
<a href="#" onclick="picker1.show(); return false;"><img src="images/calendar.png" /></a></td>
</tr>
<tr>
<td><input type="text" id="end" />
<a href="#" onclick="picker2.show(); return false;"><img src="images/calendar.png" /></a></td>
</tr>
Finally,
<script type="text/javascript">
var idArray = [];
var dp = new DayPilot.Scheduler("dp");
dp.startDate = new DayPilot.Date();
dp.endDate=new DayPilot.Date();
dp.businessBeginsHour = 8;
dp.businessEndsHour = 18;
dp.showNonBusiness = false;
dp.days = DayPilot.DateUtil.daysDiff(dp.startDate, dp.endDate);
//i write this, but it doesn't work