in reply to Is there an easy way to get the start date of the current week?
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.
|
|---|