Optimize self.setDate