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().

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

\10= date(\"m\");
12= 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