Changed date format to Year-Month-Day and padded zeros before numbers less than 10.
Changed iterating over dates to be a single for loop by just adding one to the current date.  This should fix the problem of iterating between months.
Sorted the domain dropdowns so you can find a domain easier.