Search
 
SCRIPT & CODE EXAMPLE
 

PHP

add a year php

$end = date('Y-m-d', strtotime('+5 years'));
Comment

PHP Add Year to Date

//variable date
$date = "2022-02-01";
$newDate = date('Y-m-d', strtotime($date. ' + 3 years'));

//curent date
$newDate = date('Y-m-d', strtotime(' + 3 years'));
Comment

PREVIOUS NEXT
Code Example
Php :: mkdir() permission denied laravel 
Php :: laravel eloquent order by alphabetical order 
Php :: laravel 8 plural singular 
Php :: the requested url was not found on this server. laravel 
Php :: php array to js 
Php :: php explode by tab 
Php :: wordpress if is in categroy 
Php :: php version check code 
Php :: php dias entre dos fechas 
Php :: php var dump die 
Php :: php if string is already in database 
Php :: form_dropdown codeigniter from database is assocative array 
Php :: combine array except common ones php 
Php :: have_rows count acf php 
Php :: object of class symfonycomponentformformview could not be converted to string 
Php :: docker invalid port 80 
Php :: php filter name 
Php :: check network connection php 
Php :: delete record php mysqli 
Php :: shoulder blade technical name 
Php :: string to float laravel 
Php :: strtoupper php 
Php :: laravel optimize 
Php :: get image name and extension laravel 
Php :: get the charectors inside braces regex php 
Php :: error reporting on php 
Php :: get specific key value from array php 
Php :: composer create-project laravel/laravel --prefer-dist laravel-bootstrap 
Php :: curl php post 
Php :: convert matrix row to column php 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =