Date time convert is incorrectly being modified

Viewed 36

I am having issues getting my code to return the correct response.

$Birthd = '06-27-1996';

$NewISSdate = date("m-d-Y", strtotime(date("m-d-Y", strtotime($Birthd)) . " +21 years"));

When I run this the response is: "12-31-1969"

I believe this is a default date of sorts, but what can I do to repair my code? If ran with a different $Birthd string such as "07-03-1996".

2 Answers
Related