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 441:        da = "01/01/" & y
Line 442:        a = "31/12/" & y
Line 443:        Dim daData As Date = Convert.ToDateTime(da)
Line 444:        Dim aData As Date = Convert.ToDateTime(a)
Line 445:

Source File: D:\inetpub\webs\inudistiit\blog.aspx    Line: 443

Stack Trace:


[FormatException: String was not recognized as a valid DateTime.]
   System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) +2968422
   System.Convert.ToDateTime(String value) +98
   ASP.blog_aspx.ApplyFilterYear() in D:\inetpub\webs\inudistiit\blog.aspx:443
   ASP.blog_aspx.Page_Load(Object sender, EventArgs e) in D:\inetpub\webs\inudistiit\blog.aspx:27
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.9174; ASP.NET Version:2.0.50727.9175