Answers for "php date plus 5 days"

PHP
8

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

Add 5 days to the current date in PHP

<?php
  $result = date('d.m.Y', strtotime('+5 day', time()));

  echo $result;
?>
Posted by: Guest on April-27-2022

Browse Popular Code Answers by Language