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 108: DataHelper.ExecuteNonQuery("UPDATE [wap_user] SET [lunar]='" + lunar + "' WHERE [id]=" + NuoHa.MyId + "");
Line 109: }
Line 110: DataHelper.ExecuteNonQuery("UPDATE [wap_user] SET [name]='" + name + "',[gender]=" + gender + ",[age]=" + Interval_Time(Convert.ToDateTime(lunar), NuoHa.SvrTime) + ",[birth]=2,[sign]='" + sign + "',[intro]='" + intro + "',[zodiac]='" + zodiac + "',[star]='" + star + "',[blood]='" + blood + "' WHERE [id]=" + NuoHa.MyId + "");
Line 111: Response.Write("编辑成功!<br/>\r\n");
Line 112: }
Source File: d:\www\web\txqq789.com_cgopekleedexhf0t04oz\wwwroot\wml\home\profile_edit.aspx.cs ?? Line: 110
Stack Trace:
[FormatException: String was not recognized as a valid DateTime.]
System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) +10973474
System.Convert.ToDateTime(String value) +83
home_profile_edit.Page_Load(Object sender, EventArgs e) in d:\www\web\txqq789.com_cgopekleedexhf0t04oz\wwwroot\wml\home\profile_edit.aspx.cs:110
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +85
System.Web.UI.Control.OnLoad(EventArgs e) +61
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2645
Version Information:?Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34249