Format Tanggal dalam PHP

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
no image
Item Reviewed: Format Tanggal dalam PHP 9 out of 10 based on 10 ratings. 9 user reviews.
Emoticon? nyengir

Berkomentarlah dengan Bahasa yang Relevan dan Sopan.. #okemasbro! ^_^

Komentar Terbaru

Just load it!