I need to have the Calendar Control start 36 hours after the current date. How would I do that?
I have a form that requires that the future date has to be at least 36 hours from the current date in the order for the workers involved to be able to complete the task.
EDIT: Thanks everyone for helping with my question. I’ve created a solution that will allow me to check values and keep the form from processing:
Protected Sub calPickupDate_SelectionChanged(sender As Object, e As System.EventArgs) Handles calPickupDate.SelectionChanged
If calPickupDate.SelectedDate < Today.AddHours(36) Then
ASPNET_MsgBox("You must leave at least 36 hours for procesing of your order.")
txtPickupDate.Text = ""
Else
txtPickupDate.Text = calPickupDate.SelectedDate.ToString("MM/dd/yyyy")
End If
End Sub
So, how do I close out the question?
1 Answer