On Sat, 13 Sep 2003 [EMAIL PROTECTED] wrote: > > 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;
An excellent idea, especially since I just realized I need this for something else I'm working on ;) -dave /*======================= House Absolute Consulting www.houseabsolute.com =======================*/