All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Hi,
I set the “SelectableDateStart” property to be now,
After I open the calendar the hours are not on the hour
Im expect that the start hour in the calendar will be the next hour that is valid is it possiable? thanks,
public
static
class
DateTimeExtensions
{
DateTime Round(
this
DateTime date, TimeSpan span)
long
ticks = (date.Ticks / span.Ticks) + (span.Ticks / 2) + 1;
return
new
DateTime(ticks * span.Ticks);
}
DateTime Floor(
ticks = (date.Ticks / span.Ticks);
DateTime Ceil(
ticks = (date.Ticks + span.Ticks - 1) / span.Ticks;
.timePicker.SelectedTime = DateTime.Now.Ceil(TimeSpan.FromHours(1)).TimeOfDay;