why not use date() just like below,try this
$t = strtotime('20130409163705');
echo date('d/m/y H:i:s',$t);
and will be output
09/04/13 16:37:05
More Related Contents:
- Display which day it is? sunday or monday “php coding”? [closed]
- PHP store hours, closed dates [closed]
- How to get time difference in minutes in PHP
- PHP How to find the time elapsed since a date time? [duplicate]
- A non well formed numeric value encountered
- PHP compare time
- Accessing dates in PHP beyond 2038
- Round minute down to nearest quarter hour
- Adding minutes to date time in PHP
- How to sort date array in php?
- Print time in 15-minute increments between two times in the same day
- PHP order array by date? [duplicate]
- File creation time [closed]
- PHP: How to check if a date is today, yesterday or tomorrow
- Subtracting a certain number of hours, days, months or years from date
- Sort directory files by creation datetime in Windows filesystem
- Week of the day for current date in php [closed]
- About if else statement [closed]
- Sorting a php array of arrays by custom order
- Add ‘x’ number of hours to date
- How do I sort a multidimensional array by one of the fields of the inner array in PHP? [duplicate]
- How can I find the first and last date in a month using PHP?
- Simplest way to increment a date in PHP?
- Sort Object in PHP
- How do I find the hour difference between two dates in PHP?
- How do you explain the result for a new \DateTime(‘0000-00-00 00:00:00’)?
- Convert to date format dd/mm/yyyy
- Sort array by value alphabetically php
- day of the week to day number (Monday = 1, Tuesday = 2)
- php weeks between 2 dates