In JQuery, I want to take a string such as "first Sunday" or "third Wednesday" and get back the unix timestamp of that day for the current month.
I've seen this done before in PHP with strtotime() or the DateTime class, but I can't find out how you do this in JQuery.
EDIT: This is not a duplicate of Javascript equivalent of php's strtotime()?
I needed something specifically that could handle passing in "first" or "second" etc ... unless I'm mistaken, I can't do that with javascripts Date, and have thus accepted an answer on this page for referring me over to Datejs.