renamed self.temp_date to self.date