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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

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

c# - Search and Add Comment with OpenXML for Word -