Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get 2 days before date in php

date('Y/m/d',strtotime("-1 days"));

Or Use DateTime class like this-

$date = new DateTime();
echo $date->modify("-1 days")->format('Y-m-d');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #days #date #php
ADD COMMENT
Topic
Name
2+1 =