All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wicketstuff.kendo.ui.scheduler.SchedulerBehavior.js Maven / Gradle / Ivy

There is a newer version: 10.3.0
Show newest version
function calculateKendoSchedulerViewEndPeriod(date) {
    var correctedDate = new Date(date);
    var timeMillis = (date.getHours() * kendo.date.MS_PER_HOUR) +
           		 	 (date.getMinutes() * kendo.date.MS_PER_MINUTE) +
           		 	 (date.getSeconds() * 1000);

    if (!timeMillis) {
    	timeMillis = kendo.date.MS_PER_DAY - 1;
    }

    correctedDate.setTime(date.getTime() + timeMillis);

    return correctedDate;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy