Hi, I have been trying to use the built in PHP functions for dates. I am retrieving a timestamp type from a MySQL table and attempting to build a readable string using the strftime function.
The original time stamp is in the format YYYYMMDDhhmmss. strftime returns everything correctly except for the year. It returns the year as the hour and minute concatenated together.
I am using the following format string: "%B %d, %Y, %I:%M %p".
I have also used the date function with the exact same results. I thought perhaps that the original format is not a UNIX timestamp. Any thoughts on how this should be worked with? It will probably be just as well for me to write my own functions.