Converting Date To Milliseconds

Asked

Viewed 230 times

0

I’d like some help converting this function to the Cakephp standard. She takes the date from datetimepiker and turns it into milliseconds, but I’ve searched a lot and I can’t find anything similar to the pattern Cakephp.

public function add()
{
    $this->db->set("start", $this->_formatDate($this->input->post("from")));
    $this->db->set("end", $this->_formatDate($this->input->post("to")));
}
  • Need cakephp to do? It can’t be a php function or another library and you pass it to $this->db the data?

  • 1

    I agree with @Guilhermenascimento about the need to be a Cakephp native?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.