TAdoquery date format
问题 I am Java developer. I have some old program in Delphi. In old version they work with mdb . I fixed it for connection with SQL Server. All SQL queries are implemented with TAdoQuery . qryTemp.SQL.Text:='select sum(iif(ComeSumm>0,comesumm,0)),sum(iif(lostSumm>0,lostsumm,0)) from cash '+ 'where (IdCashClause is null or idcashclause<>8) '+ ' and cashNum='+IntToStr(i)+ ' and CashType=0'+ ' and format(PayDate,"dd/mm/yyyy")=format('''+DateToStr(Date)+''',"dd/mm/yyyy") '; The program throws an