How to display my string date into readable date format in PHP -


this question has answer here:

i have date in string "20150617" means 17 june 2015

how can convert string "17-jun-2015" using php code.

use below code

<?php     echo date('d-m-y', strtotime('20150617')); ?> 

date strtotime


Comments

Popular posts from this blog

symfony - TEST environment only: The database schema is not in sync with the current mapping file -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -