PHP Convert Date/Time format from 'd/m/Y H:i:s' to 'H:i:s'?

1.5k views Asked by At

I have a timestamp column in my database with dates and times formatted like '24/06/2015 14:30', but I need to convert it to just '14:30'. I've tried everything please help.

1

There are 1 answers

0
Siim Kallari On

Very easy to use, just pass in argument and format: http://php.net/manual/en/class.datetime.php