Time doesn't get trimmed in DateTime.ParseExact

dwalkercpa

New Member
I have a textbox control as\[code\]<asp:TextBox ID="TxtStartDate" runat="server" CssClass="Text1"></asp:TextBox>\[/code\]which takes a date and time but I want to send only a date to the database.\[code\]DateTime.ParseExact(TxtStartDate.Text.Trim(), "dd/MM/yyyy", null);\[/code\]I am using this at cs page but it doesn't trim the time. What possibles error are there?
 
Back
Top