Getting error on below line, when row selecting in GridView with date
The DateTime represented by the string is not supported in calendar System.Globalization.GregorianCalendar
txtopndate.Text = DateTime.ParseExact(date, "MM/dd/yyyy", CultureInfo.InvariantCulture).ToString("yyyy-MM-dd");
Date :<asp:TextBox ID="txtopndate" runat="server" Text="" TextMode="Date" Width="147px"></asp:TextBox>
Date = 15/09/2023
Convert(varchar(11), i.entrydate,103) as EntryDate