Wednesday, March 26, 2014

Change Date format in PHP

<?php

$originalDate = "23/05/2014"; /*Your Date*/
$date = date("d-m-Y", strtotime($originalDate));

?>

No comments:

Post a Comment