Source code of the tutorial is available for download.
Views/Home/Index.cshtml
<script src="~/js/daypilot/daypilot-all.min.js" asp-append-version="true"></script> <div id="dp"></div> <script> var dp = new DayPilot.Scheduler("dp"); dp.startDate = DayPilot.Date.today().firstDayOfMonth(); dp.days = DayPilot.Date.today().daysInMonth(); dp.scale = "Day"; dp.timeHeaders = [ { groupBy: "Month" }, { groupBy: "Day", format: "d" } ]; dp.init(); dp.events.load("/api/events"); dp.rows.load("/api/resources"); </script>