You can change the dates that appear in the drop-down calendar by setting the C1DatePicker.DisplayDateStart and C1DatePicker.DisplayDateEnd properties. In this topic, you will learn how to change the start and end dates in code.
In Code
To change the dates that appear in the calendar, complete the following steps:
Visual Basic Copy Code Dim dateStringStart As String = "5-2-2016" Dim dateStringEnd As String = "25-2-2016" c1DatePicker1.DisplayDateStart = DateTime.Parse(dateStringStart) c1DatePicker1.DisplayDateEnd = DateTime.Parse(dateStringEnd)
C# Copy Code string dateStringStart = "5-2-2016"; string dateStringEnd = "25-2-2016"; c1DatePicker1.DisplayDateStart = DateTime.Parse(dateStringStart); c1DatePicker1.DisplayDateEnd = DateTime.Parse(dateStringEnd);
This Topic Illustrates the Following:
In this topic, you set the C1DatePicker.DisplayDateStart and C1DatePicker.DisplayDateEnd properties to determine the dates that appear in the drop-down calendar. The final result will resemble the following image: