Why have you named it temp_date? I would keep that as date. Nothing is temporary here.