Previous 20 days of the date calendar

Working with previous dates

For new code, DateTimeImmutable makes date arithmetic easier to read than repeatedly building timestamps with mktime().

10-Nov-2026:Tue
09-Nov-2026:Mon
08-Nov-2026:Sun
07-Nov-2026:Sat
06-Nov-2026:Fri
05-Nov-2026:Thu
04-Nov-2026:Wed
03-Nov-2026:Tue
02-Nov-2026:Mon
01-Nov-2026:Sun
31-Oct-2026:Sat
30-Oct-2026:Fri
29-Oct-2026:Thu
28-Oct-2026:Wed
27-Oct-2026:Tue
26-Oct-2026:Mon
25-Oct-2026:Sun
24-Oct-2026:Sat
23-Oct-2026:Fri
22-Oct-2026:Thu
21-Oct-2026:Wed

\11= date(\"m\");
10= date(\"d\");
2026= date(\"Y\");
for($i=0; $i<=20; $i++){
echo date('d-M-Y:D',mktime(0,0,0,$m,($de-$i),$y)); 
echo \"<br>\";
}
All Basic Codes


Subscribe to our YouTube Channel here



plus2net.com











PHP video Tutorials
✖
We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles Contact us
© 2000-2026 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer