I need to show date difference in the foreach loop smarty(tpl) , but when i do strtotime it will give me NULL result , can anyone please help me out, here is my code
$date1 is showing correct date via $this->get_template_vars(‘date1’); But when i do this strtotime($date1) , this will replace the value NULL in date1.