I got a number (20110325) that I need to convert to a date (03 25 2011), text if possible, but the example I showed is fine too. Problem is, I'm not sure how I'd go about doing this.
Thought that was a timestamp. $date = 20110325; $year = substr($date, 0, 3); $month = substr($date, 4, 5); $day = substr($date, 6, 7); echo "$month $day $year"; PHP:
Came up as "0325 25 201" this time. If it helps, "20110325" is just the year followed by the month then day all in number form.
Lol, sorry didn't get enough sleep last night: <?php $date = '20110325'; $year = substr($date, 0, 4); $month = substr($date, 4, 2); $day = substr($date, 6, 2); echo "$month $day $year"; PHP: