Ain't Meek Coder
Pages
Home
Tuesday, April 2, 2013
php format date
$originalDate
=
"2010-03-21"
;
$newDate
=
date
(
"d-m-Y"
,
strtotime
(
$originalDate
));
<? echo date(" \n l jS F Y", strtotime($data['availability'])) ?>
http://php.net/manual/en/datetime.format.php
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment