'Create the minimum datetime object Dim minDate As New DateTime(2009, 5, 1, 2, 30, 15) 'Create the maximum datetime object Dim maxDate As New DateTime(2009, 10,1, 2, 30, 15) 'Assign the minimum datetime object to the WebDateTimeEditor's MinValue WebDatePicker1.MinValue = minDate 'Assign the maximum datetime object to the WebDateTimeEditor's MaxValue WebDatePicker1.MaxValue = maxDate