Konuyu Oyla:
  • Derecelendirme: 0/5 - 0 oy
  • 1
  • 2
  • 3
  • 4
  • 5
Tarih Sorgulama
#11
Bence doğru yöntem @mekonun yöntemiydi;
https://stackoverflow.com/questions/1985...ate-format
Always prefer to use compatible data types with your parameters, rather than formatting and using strings.
Cevapla
#12
(04-04-2019, Saat: 19:38)sddk Adlı Kullanıcıdan Alıntı: Bence doğru yöntem @mekonun yöntemiydi;
https://stackoverflow.com/questions/1985...ate-format
Always prefer to use compatible data types with your parameters, rather than formatting and using strings.

Yöntemlerin hepsi doğru. problem windowsun tarih formatı ile SQL in formatı farklı olduğunda ortaya çıkıyor.  
buna benzer bir olayı binlik ayıraç ve kuruş tanımında da yaşamıştım. 

procedure TfAnaMenu.FormCreate(Sender: TObject);
begin
System.SysUtils.FormatSettings.DecimalSeparator :=',';
System.SysUtils.FormatSettings.ThousandSeparator:='.';
System.SysUtils.FormatSettings.DateSeparator := '.';
// SistemTarihFarmati = 'dd.mm.yyyy';
System.SysUtils.FormatSettings.ShortDateFormat := SistemTarihFarmati;
System.SysUtils.FormatSettings.LongDateFormat  := SistemTarihFarmati;
....
Cevapla


Konu ile Alakalı Benzer Konular
Konular Yazar Yorumlar Okunma Son Yorum
  Tarih Guncelleme Trigger OZCANK 2 650 24-05-2023, Saat: 17:06
Son Yorum: OZCANK
  İki Tarih Arası Sorgulama Mikdad 19 2.268 23-05-2023, Saat: 08:24
Son Yorum: Mikdad
  WebBrowser ile Forma Veri Gönderme ve Sorgulama adnansirca 5 2.368 02-03-2023, Saat: 17:15
Son Yorum: adnansirca
  son kayitdaki tarih bilgisini almak sadikacar60 11 2.178 16-01-2023, Saat: 19:04
Son Yorum: sadikacar60
  DbGrid içindeki tarih verisine 1 yıl eklemek neriamelih 2 744 25-12-2022, Saat: 17:54
Son Yorum: enigma



Konuyu Okuyanlar: 1 Ziyaretçi