Autor Beitrag
Bronstein
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 578
Erhaltene Danke: 1

WIN XP
Delphi 6 / Delphi 2006 / Delphi XE
BeitragVerfasst: Fr 13.10.06 11:46 
Habe ein Problem mit FormatDateTime.

Wenn ich diese Meldungen anzeigen lasse bekomme ich als Ausgabe:
ShowMessage(FormatDateTime('m/d/yyyy', now));
ShowMessage(FormatDateTime('m/d/yyyy hh:mm:ss', now));

Ausgabe:
10.13.2006
10.13.2006 12:38:26

es sollte aber:
10/13/2006
10/13/2006 12:38:26
kommen.

Warum funktioniert das nicht.


Moderiert von user profile iconKlabautermann: Topic aus VCL (Visual Component Library) verschoben am Fr 13.10.2006 um 13:40

_________________
Es gibt keine dummen Fragen nur dumme Antworten!!!
uwewo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 154



BeitragVerfasst: Fr 13.10.06 11:53 
Liegt sehr wahrscheinlich am DateSepeartor Deiner Ländereinstellungen in Windows
uwewo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 154



BeitragVerfasst: Fr 13.10.06 11:54 
user profile iconuwewo hat folgendes geschrieben:
Liegt sehr wahrscheinlich am DateSeparator Deiner Ländereinstellungen in Windows
Bronstein Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 578
Erhaltene Danke: 1

WIN XP
Delphi 6 / Delphi 2006 / Delphi XE
BeitragVerfasst: Fr 13.10.06 12:05 
Nein, das glaub ich nicht.

In einem anderen Programm das ich mal entwickelt habe funktioniert es.

Ich brauche halt dieses Format für eine SQL Abfrage

_________________
Es gibt keine dummen Fragen nur dumme Antworten!!!
azubi_20
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 593

WinXP SP2, Ubuntu 8.4
D7 Enterp., D2005 Prof., Java (Eclipse 3.4.0)
BeitragVerfasst: Fr 13.10.06 12:25 
Was du glaubst oder nicht ist deine Sache, aber dein Problem löst sich mit einer Zeile :
ausblenden Delphi-Quelltext
1:
DateSeparator  := '/';					
rd3
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Fr 13.10.06 12:32 
Hi,

weis doch mal das ShortDateFormat neu zu...
Vielleicht klappt das...?!

in onCreate z.B.
z.B. ShortDateFormat := 'dd/mm/yy';

Gruß
rd3