Last active
March 27, 2017 02:22
-
-
Save abdul-hafizh/82ed45409a9965e3749bb31f89bb6bd6 to your computer and use it in GitHub Desktop.
merubah format tanggal mysql menjadi format tanggal Indonesia
This file contains hidden or 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
function tanggalIndo($tgl) { | |
$namaBulan = array(1=>"Januari","Februari","Maret","April","Mei","Juni","Juli", | |
"Agustus","September","Oktober","November","Desember"); | |
$date = explode("-",$tgl); | |
$bulan = intval($date[1]); | |
$tanggal = $date[2]." ".$namaBulan[$bulan]." ".$date[0]; | |
return $tanggal; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment