use strict; use warnings; no warnings 'once'; use Date::Calc; use DateTime; my $onlyDate1= DateTime ->now( time_zone => 'Europe/Paris' )->add( days => 7);