This will fail when you have more than 1 day in the database!