I have a script that writes the time to a DB in this format: 20021231051742. This number is in ISO format I believe. I need to extract this number and format it in to something most people can read. The number above means "31st of December 2002. 05:17:42 AM".
However, the code that I am using, parses this data as "8/3/1909 5:36AM", yeah, very wrong! :x
Anyway, I was wondering if someone can help? I am *VERY* new at PHP.
Question
AshMan
Hello
I have a script that writes the time to a DB in this format: 20021231051742. This number is in ISO format I believe. I need to extract this number and format it in to something most people can read. The number above means "31st of December 2002. 05:17:42 AM".
However, the code that I am using, parses this data as "8/3/1909 5:36AM", yeah, very wrong! :x
Anyway, I was wondering if someone can help? I am *VERY* new at PHP.
Here is the code I am using:
Thank you.
Ash
Link to comment
Share on other sites
3 answers to this question
Recommended Posts