I have a calender field in a dynamic grid and I am getting that date field using jquery like this:
 DLD += $("[name=LDD]").datepicker('getDate');
After selecting the date , I am getting the date in below format
Wed Sep 30 2020 00:00:00 GMT+0500 
and then I am inserting this column in sql server through code
I am getting this error
Conversion failed when converting date and/or time from character string.
How can I change my date in required format?
My insertion query is below:
 qry2 += "Insert into 
DLDs(Date) values " +
                            "(" + checkNull(inner_arr[2]) ")";
Either I have to change my format while getting the date or while I am performing insertion but how?
