ISO Dates with custom fields

The full iso

<?php
$date = $page->date('Y-m-d');
$time = $page->time();
$isoDate = date('c', strtotime("$date $time"));
echo $isoDate;
?>

Or without the timezone stuff:

<?php
$date = $page->date('Y-m-d');
$time = $page->time();
$isoDate = date('Y-m-d\TH:i:s', strtotime("$date $time"));
echo $isoDate;
?>

Edit: You probably have to add the date format.

Check if time is empty:

<?php
$date = $page->date('Y-m-d');
$time = $page->time()->isNotEmpty()? $page->time(): '00:00';
$isoDate = date('Y-m-d\TH:i:s', strtotime("$date $time"));
echo $isoDate;
?>