Answers for "current date add days in php"

PHP
0

php script to calculate next 50 days from current date

$NewDate=Date('y:m:d', strtotime('+50 days'));
Posted by: Guest on September-04-2020
0

how to add extra days from a date php

<?php
  // adding extra days to date 
  
  // Steps:
	// 1) using carbon
    // 2) using strtotime
      
    //Step 1
  $date = date('Y M d h:i:s') // 2020 09 22 22:09:26 UTC
  
  $new_date = Carbon::parse($date->addDays(1); // adds extra day
                            
  // Step 2
  $date = date('Y M d h:i:s') // 2020 09 22 22:09:26 UTC
  
  echo $new_date = date('Y M d h:i:s', strtotime($date. '+1 day'));
?>
Posted by: Guest on September-22-2020
0

PHP Date add days

$date = date('Y-m-d', strtotime("+1 day"));
Posted by: Guest on June-30-2021
0

php date + 30 days

echo date('d/m/Y',strtotime('+30 days',strtotime(str_replace('/', '-', '05/06/2016')))) . PHP_EOL;
Posted by: Guest on July-30-2020

Code answers related to "current date add days in php"

Browse Popular Code Answers by Language