Delphi 2010 ve Delpi XE2 aynı pc üzerinde kullanımı!
Destek talebi(Lütfen oy verelim!)
Sitemiz üye alımına kapatılmıştır!
! CODEBANK 2012 !
İNDİRMEK&DETAYLI BİLGİ ALMAK İÇİN BURAYI TIKLAYINIZ.
0 Üye ve 1 Ziyaretçi konuyu incelemekte.
//Formatting Date Values for MySql SQL in Delphi //tablo sorgusu ve insert/update içinfunction DateForMySql(const date : TDate) : string;begin result := FormatDateTime('yyyy-mm-dd', date) ;end;
procedure TForm1.Button1Click(Sender: TObject);var s:string; tarih1,tarih2:TDate;begin //windows tarih formatı farklı ise hata vermesin--------------------- DateSeparator:='.'; TimeSeparator:=':'; ShortDateFormat:='dd'+DateSeparator+'mm'+DateSeparator+'yyyy'; //-------------------------------------------------------------------------------- tarih1:=Datetimepicker1.Date; tarih2:=Datetimepicker1.Date; s:='SELECT * from hareketler WHERE '+ ' tarih>='''+DateForMysql(tarih1)+''' AND tarih<='''+DateForMysql(tarih)+''' '; MyQuery1.Close; MyQuery1.SQL.Clear; MyQuery1.SQL.Add(s); MyQuery1.Open;end;