AJAX Calendar/Scheduling Controls
// assuming that StartDate is day 1 of the given monthDateTime startDate = DayPilot.Utils.FirstDayOfWeek(DayPilotMonth1.StartDate); DateTime endDate = DayPilot.Utils.FirstDayOfWeek(DayPilotMonth1.StartDate.AddMonths(1).AddDays(-1)).AddDays(6);
// "dpm" is the value of ClientObjectNamevar startDate = dpm.startDate;var endDate = DayPilot.Date.addDays(startDate, dpm.rows.length * 7 - 1);
DayPilot for ASP.NET WebForms, DayPilot for ASP.NET MVC, DayPilot for Java