Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0030: Cannot convert type 'string' to 'System.DateTime'

Source Error:


Line 109:                        <tr>
Line 110:                            <td colspan="2">
Line 111:                                <div class="divstartdate"><span>@(((DateTime)(val.StartPublishDate)).Date.ToString("dd'/'MM'/'yyyy"))</span></div>
Line 112:                                <div class="divenddate"><span>@(((DateTime)(val.EndPublishDate)).Date.ToString("dd'/'MM'/'yyyy"))</span></div>
Line 113:                            </td>

Source File: e:\netdocs\WebSite_Publish\Views\ViewData\datalist.cshtml    Line: 111






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