[Phpwm] strtotime() date format

David Edwards revlob at gmail.com
Tue Sep 18 13:40:29 BST 2007


What's an elegant way of getting around the fact that strtotime()
expects US English dates (mm/dd/yy) instead of dd/mm/yy? Say for
instance if I wanted to do something easy, like work out the number of
days between the strings '13/01/07' and '01/02/07'?

Explode the dates on slashes and feed them in the wrong way round?

--
Dave



More information about the Phpwm mailing list