- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$date = "2/7/2013";
echo (date("Ymd", strtotime($date))) . "\n";
$date = new DateTime($date);
echo $date->format('Y-m-d H:i:sP') . "\n";
$currTime = new DateTime();
$sendReminder=$date->diff($currTime);
echo $sendReminder->invert;