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

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -