Search
 
SCRIPT & CODE EXAMPLE
 

PHP

add time to a date php

$date = date_create("2013-03-15");
//here just change the amount of time
date_add($date,date_interval_create_from_date_string("40 days")); 
echo date_format($date,"Y-m-d");
Comment

PREVIOUS NEXT
Code Example
Php :: layout.blade.php in laravel 
Php :: laravel validation get failed rules 
Php :: check method in laravel 
Php :: get relationship data from soft delete laravel 
Php :: string array to array in php 
Php :: file upload in php mysql 
Php :: php et WP_Post Object 
Php :: create request laravel command 
Php :: laravel hasmany 
Php :: features of PHP7 
Php :: php get day of week 
Php :: gd php extension 
Php :: Array to XML Conversion using PHP 
Php :: set postman global variable header 
Php :: or where in codeigniter 
Php :: belongs to many laravel 
Php :: show featured image in post wordpress 
Php :: clear cache in symfony 
Php :: php print to console 
Php :: the requested php extension bcmath is missing from your system 
Php :: laravel @extends 
Php :: json_decode 
Php :: get current authenticated user laravel 
Php :: file upload permission in php 
Php :: laravel query builder select 
Php :: carbon get day name 
Php :: laravel get current route url 
Php :: check duplicate data in array php 
Php :: laravel collection split 
Php :: php filter array 
ADD CONTENT
Topic
Content
Source link
Name
6+6 =