-1
I have the following code:
$dataAssContrato = new DateTime($_POST['dataContrato']);
This line works perfectly in Chrome, but not in firefox or IE, because when I try to register one each, I get the following warning:
Fatal error: Uncaught Exception 'Exception' with message 'Datetime::__Construct() [datetime. -Construct]: Failed to parse time string (25/09/2014) at position 0 (2): Unexpected'
Exception: Datetime::__Construct() [datetime. -Construct]: Failed to parse time string (25/09/2014) at position 0 (2): Unexpected
The field is saved in format
d/m/Y
?– rray
I don’t know, I can’t see. I echo to see the format and another warning appears.
– GustavoSevero
But the last time I could see it was in the Y-m-d format.
– GustavoSevero
Put the form setting, the date field and the version of IE/Firefox that the problem occurs.
– rray