> For example, the Wednesday of the current week is: > > my $today = DateTime->today; > > my $wednesday = $today - ( $today->day_of_week - 3 );
How about adding a 'week' parameter
to the 'truncate' method:
print DateTime->today
->truncate( to => 'week' )
->add( days => 2 )->ymd;
- Flavio S. Glock
