First see this
tutorial[
^] on Ajax Calendar Control.
And then whatever you're saying is this,
<asp:TextBox ID="txtYouDateTime" runat="server" Width="190px" ></asp:TextBox>
<asp:ImageButton runat="Server" ID="ImgCal1" ImageUrl="calendar.png" AlternateText="Click to show calendar" OnClientClick="return false;" />
<ajaxToolkit:CalendarExtender ID="CalendarExtender1" runat="server"
TargetControlID="txtYouDateTime" PopupButtonID="ImgCal1" Format="dd/MMM/yyyy hh:mm" />
String dt = DateTime.Parse(txtYouDateTime.Text).ToString("yyyyMMdd HH:mm:ss")
Now fire the Insert query using
dt
variable within it.
-KR