Converting from a day of week to unix time in PHP

Posted by Rob on Stack Overflow See other posts from Stack Overflow or by Rob
Published on 2010-03-23T23:10:36Z Indexed on 2010/03/23 23:13 UTC
Read the original article Hit count: 288

Filed under:
|
|

Hi, I'm trying to get the unix time for date strings that are formatted like so:

'second sunday of march 2010'
'first sunday of november 2010'

I was under the impression that strtotime could handle such a string, but apparently not, as this returns false. How can I convert to unix time when given a day of week, which one of those in the month (ie. first, second, etc.), a month and a year.

© Stack Overflow or respective owner

Related posts about php

Related posts about date