SyntaxFix
Write A Post
Hire A Developer
Questions
You override $today in the if statement.
$today
if($dd<10){$dd='0'+dd} if($mm<10){$mm='0'+$mm} $today = $dd+'/'+$mm+'/'+$yyyy;
It is then not a Date() object anymore - hence the error.