Server Error in '/' Application.

String was not recognized as a valid DateTime.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: String was not recognized as a valid DateTime.

Source Error:


Line 51:                     <div class="document-detail">
Line 52:                         <strong>Ngày Hiệu Lực</strong>
Line 53:                         <span class="document-detail-col"><%=Convert.ToDateTime(dt_details.Rows[0]["NGAY_HIEU_LUC"] + "").ToString("dd/MM/yyyy")%></span>
Line 54:                     </div>
Line 55:                     <%} %>

Source File: c:\inetpub\wwwroot\BQLKKT\BQLKKT\Document\Details.aspx    Line: 53

Stack Trace:


[FormatException: String was not recognized as a valid DateTime.]
   System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) +4837954
   System.Convert.ToDateTime(String value) +66
   ASP.document_details_aspx.__RenderContent1(HtmlTextWriter __w, Control parameterContainer) in c:\inetpub\wwwroot\BQLKKT\BQLKKT\Document\Details.aspx:53
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +115
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +240
   System.Web.UI.Page.Render(HtmlTextWriter writer) +38
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4240


Version Information: Microsoft .NET Framework Version:2.0.50727.9061; ASP.NET Version:2.0.50727.9062