I expected this functional to return 6/30/2005
instead of 7/1/2005
.
print date("m/d/Y", strtotime("12/31/2004 +6 month"));
Similarly, print date("m/d/Y", strtotime("1/31/2011 +1 month"))
returns 03/03/2011
while would like it to return 2/28/2011
.
Does anyone know if there is a straight forward way to show the last day of the added month?