If you start on a Monday, that'll give you the Saturday. That's why a loop was used.
If you start on a day other than Sunday or Monday, it won't print anything. That's why the print was outside the loop.
In reply to Re^6: Yesterday Date
by ikegami
in thread Yesterday Date
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |