[ create a new paste ] login | about

Link: http://codepad.org/dt42fxvI    [ raw code | output | fork ]

PHP, pasted on May 13:
1
2
3
4
5
6
<?php

$date = new DateTime("30/05/2010 @ 09:15:15");
echo $date->format('Y-m-d H:i:s');

?>


Output:
1
2
3
4
5
6

Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (30/05/2010 @ 09:15:15) at position 0 (3): Unexpected character' in /t.php:3
Stack trace:
#0 /t.php(3): DateTime->__construct('30/05/2010 @ 09...')
#1 {main}
  thrown in /t.php on line 3


Create a new paste based on this one


Comments: