PHP Indonesia - Facebook | PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ | |
 | Learn to Play the Ukulele
Make your own music in your own way on the ukulele and have fun doing it. This online course is taught by "Cool Hand Uke." Sign up today for just $25.  | From our sponsors | | |
maaf mau tanya lagi saya punya data tanggal di mys... Sep 12th 2013, 02:05, by Fangfang Rizal Mukhtar | maaf mau tanya lagi saya punya data tanggal di mysql dengan format "2013-09-12" atau YYYY-MM-DD
nah kalau mau menampilkan data tersebut di PHP dengan format DD-MM-YYYY bagaimana ya? baca http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_date-format masih nggak umum |
| | datetime class |
| | klo mau ubah di php nya jadi kyk gini: <?php $time = strtotime('2013-09-12'); echo date('d-m-Y', $time); |
| | makasih saya coba dulu |
| | [OOT] mysql solution:
SELECT DATE_FORMAT(date_field,'%d-%m-%Y') AS tgl FROM table; |
| | buat fungsi aja function convertTgl($tgl){ $tg=explode('-',$tgl); return $tg[2].' '.bulan($tg[1]).' '.$tg[0]; } jd nanti pas nampilin data dr mysql tinggal converTgl($data['tgl']) semoga membantu |
| | terima kasih yang <?php $time = strtotime('2013-09-12'); echo date('d-m-Y', $time); tadi sudah work yang lainnya juga saya simpan, siapa tahu besok besok berguna
Terima kasih | | |
|
Tidak ada komentar:
Posting Komentar