Answers for "how many days are in last 6 month php"

PHP
0

add 6 months to date in php

$effectiveDate = date('Y-m-d', strtotime("+3 months", strtotime($effectiveDate)));
Posted by: Guest on May-04-2020
1

last day of previous month in php

$lastDay = date('t',strtotime('last month'));

print_r($lastDay);
Posted by: Guest on November-28-2020

Browse Popular Code Answers by Language