Hi, I just wanne transform the date, I stored in the Database. Now it is 2004-03-10 , but i 'd like to have it like... 10.03.2004 !! Anybody can help me! for you it must be pretty easy ! 😉 Many Thanks!!
MaXx
Do you want to store it as dd.mm.yyyy or only display it as such?
For the latter, regex for something as lame as: $date_array = explode('-', $date); $date = $date_array[2] . '.' . $date_array[1] . '.' . $date_array[0]; will do.
i stored it as "date" in the database, so i have to store it as yyyy-mm-dd. and now i wanna display it like dd.mm.yyyy
Thanks a lot laserlight, 😉
It works!