PHP Date comparision.
I have a date string that uses this format:
Friday, 28 December, 2012
Sunday, 25 December 2012
Monday, 1 January 2013
I need to the above date strings converted to a the following date format: "Y-m-d", so I compare it to that date format (today''s date).
Since the day is in front, when I convert it - it gives me the wrong date. So my function code is off.