Converting date format yyyy-mm-dd to dd-mm-yyyy using PHP
This can be done by using two PHP functions strtotime and date:
$date = '2012-06-18'; $newDate = date( 'd-m-Y', strtotime( $date ) ); echo( $newDate );
Result:
18-06-2012
This can be done by using two PHP functions strtotime and date:
$date = '2012-06-18'; $newDate = date( 'd-m-Y', strtotime( $date ) ); echo( $newDate );
Result:
18-06-2012
Log in or create a user account to post a comment.