Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php 3 days after

$Today=date('y:m:d');
  
// Declare a date 
$date = "2019-05-10"; 
  
//if already have time  then use this  =============
echo date('Y-m-d', strtotime($Today. ' + 10 days')); 

//if already have time  then use this  =============

// add 3 days to date
$NewDate=Date('y:m:d', strtotime('+3 days'));

// subtract 3 days from date
$NewDate=Date('y:m:d', strtotime('-3 days'));

// PHP returns last sunday's date
$NewDate=Date('y:m:d', strtotime('Last Sunday'));

// One week from last sunday
$NewDate=Date('y:m:d', strtotime('+7 days Last Sunday'));
Comment

php date + 30 days

echo date('d/m/Y',strtotime('+30 days',strtotime(str_replace('/', '-', '05/06/2016')))) . PHP_EOL;
Comment

PREVIOUS NEXT
Code Example
Php :: php info file 
Php :: check if cookie exists php 
Php :: laravel print executed query 
Php :: php hide notice 
Php :: laravel model tablename 
Php :: Example wp-config.php for Debugging 
Php :: Warning: Cannot modify header information - headers already sent by (output started at C:xampphtdocsheermatkamyprofile.php:48) in C:xampphtdocsheermatkamyprofile.php on line 144 
Php :: php time a script 
Php :: laravel Call to a member function diffForHumans() on string 
Php :: php get file extension from filename 
Php :: php cors all 
Php :: php get string after character 
Php :: php read file line by line 
Php :: wordpres get_posttype 
Php :: wp_dequeue_style 
Php :: SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table `users` add unique `users_email_unique`(`email`)) 
Php :: brew switch php version 
Php :: array_sum in multidimensional array php 
Php :: php check whether the url is http or https 
Php :: php all keys in array 
Php :: illuminate database queryexception could not find driver laravel 9 
Php :: pi() in php 
Php :: twig concat string 
Php :: laravel hash::check 
Php :: utf8 encode php 
Php :: beaver builder shortcode post title 
Php :: phpmailer add reply to 
Php :: php loop through array 
Php :: comment supprimer balise script hmtl en php regex 
Php :: how get file size in laravel 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =