Wasn't quite dealing with the date properly