I have the following $ _get:
if(!empty($_GET) && $_SERVER['REQUEST_METHOD'] == 'GET'){
$v_ocorrencia = $_GET['ocorrencia'];
$datainicio = $_GET['datainicio'];
$datafinal = $_GET['datafinal'];
echo 'valor recebido: '. $v_ocorrencia;
echo 'valor recebido: '. $v_datainicio." 00:00:00.000";
echo 'valor recebido: '. $v_datafinal." 00:00:00.000";
With the implode it returns the date:
valor recebido: 1
valor recebido: 2016-17-11 00:00:00.000
valor recebido: 2016-26-11 00:00:00.000
So far so good, but I can not change the order of the date, it's coming out:
Y-dd-mm
and need to be Y-mm-dd
Note: The date is coming from a jquery datepicker