Jump to content

dealing with editing a date record ! how to format it!


samoi

Recommended Posts

Hello guys! How are you?

 

I have records in the database of dates like "yyyy dd mm hh:MM:ss" no dashes in the date format between years days and months!

I need to replace the spaces in between the date values to dashes(-) ! so it will look something like this:

"yyyy-dd-mm hh:MM:ss"

 

is there any suggestion ?

I have used something like this but it has so many errors due to the fact that I am a beginner!

for($year=7; $year<10; $year++){
echo "200".$year."-";
}

 

some kind of this algorithm solving !

:-[

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.