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

20-Oct-2026:Tue
19-Oct-2026:Mon
18-Oct-2026:Sun
17-Oct-2026:Sat
16-Oct-2026:Fri
15-Oct-2026:Thu
14-Oct-2026:Wed
13-Oct-2026:Tue
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

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