Write a PHP script to convert a date from yyyy-mm-dd to dd-mm-yyyy.
Sample date : 2012-09-12
Pictorial Presentation:
<?php $odate = "2012-09-12"; $newDate = date("d-m-Y", strtotime($odate)); echo $newDate."\n"; ?>
Sample Output:
12-09-2012
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer