Autor Beitrag
fishhed
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 77


Delphi 7
BeitragVerfasst: Fr 05.01.07 14:25 
Hallo zusammen,

gibt es eine einfache Möglichkeit das Datumsformat beim Programmstart nach eigenen Wünschen einzustellen?

Das Datumsformat soll immer mit einer SQL-Datenbank kompatibel sein, also YYYY-MM-DD hh.mm.'00'.

Habt Ihr einen Tipp?

Schöne Grüsse,

Marcel
uwewo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 154



BeitragVerfasst: Fr 05.01.07 14:35 
Ich weiss zwar nicht für welchen Anwendungsfall du es benötigst, such aber mal nach

ausblenden Delphi-Quelltext
1:
DateSeparator					


Oder stelle Dein Windows entsprechend ein.

Uwe
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Fr 05.01.07 14:40 
LongDateFormat, ShortDateFormat

BTW. verwende parametrisierte Abfragen, dann ist das Format egal.

_________________
Markus Kinzler.
fishhed Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 77


Delphi 7
BeitragVerfasst: Di 09.01.07 18:01 
Hi, ich habe selbst eine Lösung gefunden:

ausblenden Delphi-Quelltext
1:
xyString := FormatDateTime('YYYY-MM-DD hh.mm', Now);					


Vielen Dank für eure Hilfe!

Moderiert von user profile iconChristian S.: Delphi-Tags hinzugefügt