Created
November 10, 2018 17:34
-
-
Save coffeepostal/82becfd6029810775a86c16b6ba163fc to your computer and use it in GitHub Desktop.
PHP: Convert SQL Date Format to PHP Readable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$timestamp = strtotime($result->datetime); | |
echo date("Y-m-d H:i:s", $timestamp); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment