following Jason indication I have make this:
I added two select field in form one for hour and on for minutes, and the changed the post:
<?php if(isset($_POST['datePicker'])) $_POST['datePicker'] = $_POST['datePicker']." 12:00:00"; ?>
to
<? php if (isset($_POST["datePicker"]))? $_POST["datePicker"] . " " . $_POST['hour'] . ":" . $_POST['minutes'] . ":" . "00" ; ?>
and work fine.
My real db insert is:
|" . "".((isset($_POST["datePicker"]))?(my_change_date_format_function($_POST["datePicker"])) . " " . $_POST['ora'] . ":" . $_POST['minuti'] . ":" . "00" :"") ."" . "|