Created
January 4, 2018 07:38
-
-
Save IronGhost63/8fc69dfb24eeac7d105858461630540e to your computer and use it in GitHub Desktop.
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 | |
$db_date = "2018-01-04 14:37:50"; // เวลาจากฐานข้อมูล | |
$timestamp = strtotime( $db_date ); // แปลงเวลาจากฐานข้อมูลเป็น timestamp | |
$date = date( "j F Y", $timestamp ); // แปลง timestamp เป็นวันที่ | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment