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 :: base64 encode laravel 
Php :: array_sum in multidimensional array php 
Php :: php time format am pm 
Php :: how to populate dropdown list with array values in php 
Php :: php does property exist 
Php :: laravel request all except token 
Php :: debug wordpress errors 
Php :: laravel has table 
Php :: how to traverse characters in a string in a for loop in php 
Php :: get image extension in php 
Php :: wp_redirect to home page 
Php :: ubuntu update php 7.4 to 8 
Php :: php delay 
Php :: get wordpress page link by id 
Php :: how get last item in foreach in laravel 
Php :: orwherebetween laravel 
Php :: utf8 encode php 
Php :: array_unique 
Php :: datetime difference in php 
Php :: php artisan serve not working 
Php :: php check if non-object 
Php :: php foreach if last item 
Php :: php utf-8 
Php :: get featured image url in wordpress 
Php :: wordpress user enumeration 
Php :: log facade laravel 
Php :: laravel session flash 2020 
Php :: with in relation laravel 
Php :: how to set field type of date of birth in laravel 
Php :: php copyright footer 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =