coffeepostal
11/10/2018 - 5:34 PM

PHP: Convert SQL Date Format to PHP Readable

PHP: Convert SQL Date Format to PHP Readable

<?php
$timestamp = strtotime($result->datetime);
echo date("Y-m-d H:i:s", $timestamp);