How to get previous day of date in php
Method 1 : Use DateTime class as bellow $date = new DateTime(); $date->modify('-1 days')->format('Y-m-d'); Method 2: Use strtotime function in date function as bell…
Method 1 : Use DateTime class as bellow $date = new DateTime(); $date->modify('-1 days')->format('Y-m-d'); Method 2: Use strtotime function in date function as bell…
Method 1 : Use DateTime class as bellow $date = new DateTime(); $date->modify('+1 days')->format('Y-m-d'); Method 2: Use strtotime function in date function as bello…