Oops, I named the variable wrong and that screwed it up (I named it date, which shouldn't have been a problem as date did = date but whatever).