Berikut ini format tanggal dalam PHP :
$tempDate = '2016-06-09';
$day = date('l', strtotime( $tempDate));// will gives you the week day name
$month = date('jS F Y',strtotime($tempDate));// will format like date 9th June 2016
$newdate= date('l jS \of F Y h:i:s A',strtotime($tempDate));// Prints the day, date, month, year, time, AM or PM
0 komentar
Berkomentarlah dengan Bahasa yang Relevan dan Sopan.. #okemasbro! ^_^