How to get the Unix timestamp for a month in the future given a date

advertisements

Suppose I pull a field from the database, a timestamp field.

How do I get the Unix Timestamp, 1 month in the future, from that timestamp field?

My brain is a bit tired, so I need a bit of a re-jogging.


$newDate = strtotime('+1 month',$startDate);

Using strtotime() you can pass it '+1 month' to add a context sensitive month.