Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

date subtraction php

<?php
// current time in PHP
$datetime = date("Y-m-d ");
// print current time
echo $datetime;
echo "
";
//After using of strotime fuction then result 
$yesterday = date("Y-m-d", strtotime("yesterday"));
echo $yesterday;
?>
Source by www.delftstack.com #
 
PREVIOUS NEXT
Tagged: #date #subtraction #php
ADD COMMENT
Topic
Name
5+2 =