my $dt = DateTime->today(); my $dow = $dt->day_of_week(); $dt->subtract( days => $dow % 7 ); $dt = $dt->date();
Has been an interesting afternoon and the support from all monks very much appreciated as each answer helps improve my old brain to think perl again.
In reply to Re: Is there an easy way to get the start date of the current week?
by ramjamman
in thread Is there an easy way to get the start date of the current week?
by ramjamman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |