I have a text box field entry on an update form that is for a date variable - date and time. I have tried using a compare validator to check that the value entered is a valid date and time, but it appears to only accept a date, and not a time.
Here is my existing code:
</p><p> <td>Booking Date and Time</td>
<td><asp:TextBox ID="book_datemadeTextBox" runat="server" Text='<%# Bind("book_datemade") %>'></asp:TextBox>
<asp:CompareValidator ID="vldBookDateValue" runat="server" ErrorMessage="The booking date is invalid" ControlToValidate="book_datemadeTextBox"
& ...
Go to the complete details ...