php echo line causes 500 internal server error -


$dt1 = datetime::createfromformat('m ds, y', $checkin);  echo($dt1);  

when add echo line receive 500 internal server error.

$dt1 object ..so cant echo it.it raise error.you need like..

echo $dt1->format('d.m.y'); 

Comments

Popular posts from this blog

Python Kivy ListView: How to delete selected ListItemButton? -

asp.net mvc 4 - A specified Include path is not valid. The EntityType '' does not declare a navigation property with the name '' -