I can't get this figured out. I'm trying to add one month to a date so that I can have a dynamic field based upon a timestamp that is put into a database. As it stands today I have a timestamp of '2011-05-31 19:29:52' in the variable $LastUpdateStampPDdt. I do the following:
$date = date('M-y', strtotime($LastUpdateStampPDdt . " +1 month"));
and it gives me Jul-11. I'm trying to get Jun-11 so then I go:
$date2 = date('M-y', strtotime($LastUpdateStampPDdt . " +2 month"));
and it also gives me Jul-11 (which is what I want)...
How do I get the first one to show me Jun-11? Does the method have to be changed for how I'm doing it?