Answers for "adding weeks in php"

PHP
1

adding weeks in php

## CURRENT DATE + ANY DATES YOU WANT TO ADD
echo date("Y-m-d", strtotime($date."+5 days"));
echo date("Y-m-d", strtotime($date."+5 weeks"));
echo date("Y-m-d", strtotime($date."+5 months"));
echo date("Y-m-d", strtotime($date."+5 years"));
Posted by: Guest on April-09-2022

Browse Popular Code Answers by Language