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 119:        if (Request.QueryString["data"] != null)
Line 120:        {
Line 121:          now = DateTime.Parse(Request.QueryString["data"].ToString());
Line 122:          if (Request.QueryString["attivita"] != null)
Line 123:          {

Source File: c:\htdocs\www.sicc.it\scheda_attivita.aspx.cs    Line: 121

Stack Trace:


[FormatException: String was not recognized as a valid DateTime.]
   System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) +14545182
   scheda_attivita.Page_Load(Object sender, EventArgs e) in c:\htdocs\www.sicc.it\scheda_attivita.aspx.cs:121
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.4087.0