Server Error in '/' Application.

Conversion from string "8%2F9%2F2020" 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 "8%2F9%2F2020" to type 'Date' is not valid.

Source Error:


Line 153:   End If
Line 154:%>
Line 155:<% Title = "Menus for " & FormatDateTime(menuDate, vbLongDate) & "" %>
Line 156:<!--#include file="cobalt_header.html"-->
Line 157:

Source File: C:\inetpub\wwwroot\FoodPro.NET\shortmenu.aspx    Line: 155

Stack Trace:


[InvalidCastException: Conversion from string "8%2F9%2F2020" to type 'Date' is not valid.]
   Microsoft.VisualBasic.CompilerServices.Conversions.ToDate(String Value) +1571791
   ASP.foodpro_net_shortmenu_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in C:\inetpub\wwwroot\FoodPro.NET\shortmenu.aspx:155
   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +117
   System.Web.UI.Page.Render(HtmlTextWriter writer) +39
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +79
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +8753


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