KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a variable called $effectiveDate containing the date 2012-03-26 . I am trying to add three months to this date and have been unsuccessful at it. Here is what I have tried: $effectiveDate = strtotime("+3 months", strtotime($effectiveDate)); and $effectiveDate = strtotime(date("Y-m-d", strtotime($effectiveDate)) . "+3 months"); What am I doing wrong? Neither piece of code worked.
Tags (comma-separated)
Save Edits
Cancel