Autor Beitrag
juergen
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 87



BeitragVerfasst: Di 29.04.03 09:06 
Hallo,

wie kann ich das Datumsformat in einer MYSQL-Datenbank ändern ?

Format ist YYYY.MM.DD soll geändert werden in DD.MM.YY

juergen
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 29.04.03 15:02 
meines wissens gar nicht. es ist immer YYYY-MM-DD

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Semi
Hält's aus hier
Beiträge: 11



BeitragVerfasst: Di 29.04.03 15:29 
Es gibt in den neueren Mysql Versionen, die Möglichkeit verschiedene Datumstypen anzugeben! Aber für was brauchst so was?
neojones
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1206
Erhaltene Danke: 1



BeitragVerfasst: Di 29.04.03 15:37 
Normalerweise macht man die Konvertierung ausschließlich über das Frontend, um den Datenbankunterbau kompatibel zu halten. Wenn man in SQL das Format ändern will, dann mit DATE_FORMAT().

Steht im mySQL-Handbuch: www.mysql.com/docume...e_and_time_functions

Viele Grüße,

Matthias

_________________
Ha! Es compiliert! Wir können ausliefern!
juergen Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 87



BeitragVerfasst: Di 29.04.03 16:10 
Danke Euch,

die DELPHI function FormatDateTime hat mein Problem gelöst.

juergen