- var_dump: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$datetime = '0000-00-00 00:00:00'; //got from DB
$timestamp = strtotime($datetime);
echo "Timestamp:";
var_dump($timestamp);
// format to time format...
$date = date('d.m.Y', $timestamp);
echo "Date:";
var_dump($date);