<?php
$m=date('m');
$d=date('d');
$y=date('Y');
echo $todaydate=date('Y-m-d');
$yday=date("Y-m-d", mktime(0, 0, 0,$m,$d-1,$y));
echo "<br>";
echo $yday;
?>
$m=date('m');
$d=date('d');
$y=date('Y');
echo $todaydate=date('Y-m-d');
$yday=date("Y-m-d", mktime(0, 0, 0,$m,$d-1,$y));
echo "<br>";
echo $yday;
?>
No comments:
Post a Comment