Passing date as a parameter to JavaScript function

0

I'm trying to pass a PHP date to a HTML block that has a Javascript function, the problem is that it's going in How can I solve this?

Part of the HTML string being mounted:

$tabelaDados = "<tr><td scope='row'>'.$idDesp.'</td><td class='td-centro'><a href='#'><i class='far fa-edit'></i></a><span> </span><a href='#' onclick='apagaRegistro('.$idDesp.','.$mesAnoRef.' )'><i class='fas fa-trash-alt'></i></a></td>"

When my function apagaRegistro is called, the value of the second parameter comes as 0.0003984938487854787 , just an example.

    
asked by anonymous 12.02.2018 / 13:50

0 answers