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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -