add 6 months to date in php
<?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'));
?> $effectiveDate = date('Y-m-d', strtotime("+3 months", strtotime($effectiveDate)));
Also in PHP:
- combine two query value in laravel 8
- laravel::all()->distinct()->get();
- add console script in phpcode
- edit and add raw http header with php
- debian php switch version
- composer create-project laravel/laravel 8
- datetime in php
- date_default_timezone_set("America/New_York"); echo "The time is " . date("h:i:sa");
- Warning: func_get_arg() expects exactly 1 parameter, 0 given in
- creat laravel project
- extract data from api callback php
- display_errors in php.ini
- Demonstrate the use of Loops and arrays in PHP
- eloquent unique combination
- Interval Between Different Dates
- display errors + php
- catch new exception php
- drupal 7 db_query example
- disable timestamps for a table
- check key in an array
- current date function in php
- clear cache on laravel
- error exec() is disabled for the security reason laravel
- create foreign key laravel migration