$nextday = $day1.$month.$year; $nextday = (length($day1) < 2) ? "0".$day1."." :$day1;