All,
I have a database where I have a schedule and I want to print the schedule on my website.
This is working fine but now the time is shown like 00:00:00 and I don't want to use seconds...
Does anyone know a way I can either cut the seconds off in a script or saving it diffent in the database..
Thanks
Peanuts
If its coming right out of the database, try the following:
echo substr($row["MyDateField"], 0, -3);
This will cut off the last three characters of the field.
Hope that helps!
Chris King
Manuals are really cool stuff. Read them.
http://www.php.net/manual/en/function.strftime.php