- sprintf: documentation ( source)
<?php
$month = 05;
$day = 07;
$year = 2014;
$dateString = sprintf("%u/%u/%u", $month, $day, $year);
$exp = new DateTime($dateString);
$now = new DateTime();
if ( $exp > $now )
echo "in future";
else
echo "in past";