21-02-21, 06:20 AM
PHP كود :
cm = new SqlCommand("Select c.id,c.transno,p.pcode,p.pdesc,c.price,c.qty,c.disc,c.total from Tbl_Cart as c inner join Tbl_Product as p on c.pcode = p.pcode where status like 'Sold' and cast(sdate as date) between '" + dtp1.Value.ToShortDateString() + "' and '" + dtp2.Value.ToShortDateString() + "'", cn);
رسالة الخطأ هي
PHP كود :
Conversion failed when converting date and/or time from character string.