i am using simple script to get date
<?php
$t=getdate();
$st_datum=date('Y-m-d',$t[0]);
?>
and than i write this date into the database. When i inserted a new field in database table "st_datum" and select "date" as datatype it automaticly gave me formation like "Y-m-d". So the the date get stored like 2007-5-19.
Now i want to display this info from table, however i want it to display like 19-5-2007.
So i went and change in the code 'Y-m-d' to 'd-m-Y' but than the date info wasnt stored in data base.
How do i change the Y-m-d order in database? Or is there any other option?
Best regards,
Heki
