Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php date + 1 year

$today =date('Y-m-d');
$expiryDate=date('Y-m-d H:i:s', strtotime('+1 year', strtotime($today)) );
 
PREVIOUS NEXT
Tagged: #php #date #year
ADD COMMENT
Topic
Name
1+6 =