Answers for "given date plus 1 year in php"

PHP
5

php date plus days

<?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')); 
  
?>
Posted by: Guest on June-04-2020
0

php date today plus 1 month

$future_timestamp = strtotime("+1 month");
$data = date('Y-m-d', $future_timestamp);
Posted by: Guest on July-23-2020

Browse Popular Code Answers by Language