Change it to this will give you the expected format:
$effectiveDate = date('Y-m-d', strtotime("+3 months", strtotime($effectiveDate)));
More Related Contents:
- PHP 01/01/1970 Issues with Date Fields
- Simplest way to increment a date in PHP?
- PHP date() and strtotime() return wrong months on 31st
- How to get previous month and year relative to today, using strtotime and date?
- How to get closest date compared to an array of dates in PHP
- PHP, Get tomorrows date from date
- PHP strtotime +1 month adding an extra month [duplicate]
- php – add two hours to date variable
- PHP: How to check if a date is today, yesterday or tomorrow
- date() method, “A non well formed numeric value encountered” does not want to format a date passed in $_POST
- Determine If Business Is Open/Closed Based On Business Hours
- Week of the day for current date in php [closed]
- Convert a date format in PHP [duplicate]
- PHP check if date between two dates
- PHP compare time
- Add ‘x’ number of hours to date
- How can I find the first and last date in a month using PHP?
- Adding 30 minutes to time formatted as H:i in PHP
- Select entries between dates in doctrine 2
- How to convert ISO8601 to Date format in php
- How do I find the hour difference between two dates in PHP?
- Getting all dates for Mondays and Tuesdays for the next year
- How do you explain the result for a new \DateTime(‘0000-00-00 00:00:00’)?
- Increase days to php current Date()
- Convert to date format dd/mm/yyyy
- MySQL, how to insert null dates
- Converting to date in PHP from yyyymmdd format
- Subtracting a certain number of hours, days, months or years from date
- Getting first weekday in a month with strtotime
- How do I convert an ISO8601 date to another format in PHP?