Server Error in '/' Application.

Conversion from string "2015,2015-2,2-25,25" to type 'Date' is not valid.

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.InvalidCastException: Conversion from string "2015,2015-2,2-25,25" to type 'Date' is not valid.

Source Error:


Line 69:         Dim dP As String = Request.QueryString("d")
Line 70: 
Line 71:         Dim fP As DateTime = yP & "-" & mP & "-" & dP
Line 72: 
Line 73:         Dim fS As String = String.Format("{0:MMMM dd}", fP) & " de " & String.Format("{0:yyyy}", fP)

Source File: C:\Inetpub\vhosts\unicoc.edu.co\httpdocs\calendario-dia.aspx.vb    Line: 71

Stack Trace:


[InvalidCastException: Conversion from string "2015,2015-2,2-25,25" to type 'Date' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDate(String Value) +1287910
   calendario_dia.Page_Load(Object sender, EventArgs e) in C:\Inetpub\vhosts\unicoc.edu.co\httpdocs\calendario-dia.aspx.vb:71
   System.Web.UI.Control.OnLoad(EventArgs e) +95
   System.Web.UI.Control.LoadRecursive() +59
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +678


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