Hi,
I am trying to use a datetime field in a webform to pass a datetime parameter into a database.
The datetime format in the database is:
2015-05-18 00:00:00.000
The webform input field is:
<asp:TextBox ClientIDMode="Static" ID="txtEffDate" runat="server" CssClass="calendarImg" Width="100px"></asp:TextBox>
<asp:ImageButton runat="Server" ID="ImageButton1" ImageUrl="~/images/cal.gif" BorderStyle="None"
AlternateText="Click to show calendar" TabIndex="300" Style="cursor: pointer;" Width="16px" />
<asp:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtEffDate" PopupButtonID="ImageButton1" />
The specific parameter code behind is:
Go to the complete details ...