in reply to Re: Adding to dates
in thread Adding to dates
A little improvement is to include the duration definition in the add call:
Then you don't need the use DateTime::Duration either.$date->add( months => 1, end_of_month => 'preserve' );
|
---|
In Section
Seekers of Perl Wisdom