Recent Posts

Convert date format yyyy-mm-dd to dd-mm-yyyy

Use strtotime() and date():

$originalDate = "2010-03-21";
$newDate = date("d-m-Y", strtotime($originalDate));
(see strtotime and date docs on the PHP site).

No comments:

Post a Comment