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

gcc - MinGW's ld cannot perform PE operations on non PE output file -

How to connect android app to App engine -

hadoop - Running Map Reduce Job shows error - Mkdirs failed to create /var/folders/ -