I'm having difficulties creating a date algorithm (using the DateTime object) that checks to see if a date lands between two given months (where the end of the year is considered Aug 31st).
So the beginning of the year is considered Sept 1st, XXXX and end of the year is considered Aug 31st XXXX+1
$today = new DateTime('now');
I need to see if date is between June and May.
For example if it is Dec 2009
Is the date between June 2009 and May 2010? (yes)
If date is April 2014
Is the date between June 2013 and May 2014? (yes)
If date is July 2014
Is date between June 2013 and May 2014. (no)