I'm trying to use the strtotime
function in order to return the following date specified. For example:
strtotime('thursday'); //Need to get NEXT Thurs, not today (assuming today is Th)
Using next thursday
would work in this case, but does not work with absolute dates, such as:
strtotime('next aug 19'); //Should return 08-19-2011, but instead returns 12-31-1969
I'm thinking this may call for some regexes, but since the formats that will be input are so variable, I'd rather find a simpler solution if it exists.
Thanks!