add 6 months to date in php
snippet in php

php date plus days

user7030

<?php 
// PHP program to add days to $Date 
  
// Declare a date 
$date = "2019-05-10"; 
  
// Add days to date and display it 
echo date('Y-m-d', strtotime($date. ' + 10 days')); 
  
?> 

add 6 months to date in php

user5821

$effectiveDate = date('Y-m-d', strtotime("+3 months", strtotime($effectiveDate)));