User-797751191 posted
Hi
In Script i have below code . Datatype is Date in Sql database
$("#txt_StartDate").datepicker({ dateFormat: 'dd/mm/yy' }).on("change", function () {
//get start date
var startdate = $(this).val();
//split the date to get the year and month
var array = startdate.split("/")
var year = parseInt(array[2]), month = parseInt(array[1]);
//set the closing date.
$("#txt_ClosingDate").datepicker({ dateFormat: 'dd/mm/yy' });
$("#txt_ClosingDate").datepicker("setDate", new Date(year, month, 0));
});
On below line i get above error
DateTime m_ClosingDate = Convert.ToDateTime(txt_ClosingDate.Text.ToString());
Thanks