Posted by Brian Kendig on 07/10/07 17:16
I'm working with dates in several formats including 'yyyy MMM dd', but
strtotime doesn't recognize this format and returns FALSE.
Is there a direct way to convert times from this format into
timestamps, other than my having to whip up a simple parsing routine?
My headache is that I use strtotime in a lot of places in a lot of
files, and I'd hate to have to add a wrapper everyplace I use it. I
wish there were a way to extend strtotime's default functionality, but
I know that would involve hacking the PHP source code.
[Back to original message]
|