[Phpwm] strtotime() date format

Greg Jones greg.jones at gmail.com
Tue Sep 18 15:41:10 BST 2007


As long as you're not on windows, you can use strptime to parse a date
for a given format, which you could reformat as something acceptable
to strtotime. The way it parses is a little odd though (zero-indexed
months, years since 1900)  and the formatting isn't that used by
date(), so if your date-format is always going to be d/m/(y|Y) it's
probably just easier to re-order it with string functions.

Greg



More information about the Phpwm mailing list