You can use substr.
Example.
<?php
$date="March 21, 2011 - 06:30 PM";
$time = substr($date,17,8); // this means you will eliminate 17 characters (March 21, 2011 - ) "including the space", and then print out the 8 characters.
echo $time; // the output will be 06:30 PM
?>
you can also google substr tags.
lyrico
Junior Poster in Training
94 posts since Dec 2010
Reputation Points: 33
Solved Threads: 15
$gpstime=$row['gpstime'];
$ss= strtotime($gpstime);
print date("H:i:s", $ss);
Does it help?
TechySafi
Junior Poster in Training
99 posts since Oct 2010
Reputation Points: 10
Solved Threads: 14
If your problem was solved, your can now marked this thread as solved. ^^,
lyrico
Junior Poster in Training
94 posts since Dec 2010
Reputation Points: 33
Solved Threads: 15