Converting Data To Milliseconds

0

I would like some help to convert this function to the Cakephp standard. It takes the date from datetimepiker and it turns into milliseconds, but I searched a lot and did not find anything like that for CakePHP .

public function add()
{
    $this->db->set("start", $this->_formatDate($this->input->post("from")));
    $this->db->set("end", $this->_formatDate($this->input->post("to")));
}
    
asked by anonymous 11.08.2015 / 21:50

0 answers