Feel a bit silly asking this on here but I’m at a loose end with what to search to give me the answer on this one, so here is the question:
I have a number such as:
0800
Ideally I would like to format this (using PHP) into 8:00am – is this possible?
Hope you can help,
Tom
What you can use is
date()function and the code below:More info can be found here: http://php.net/manual/en/function.date.php
And also one example would be awesome: http://codepad.org/uUuoZK1A