$date_format = C4::Context->preference('dateformat') unless $date_format;
if ( ref($date_string) eq 'DateTime' ) { # already a dt return it
if ( ref($date_string) eq 'DateTime' ) { # already a dt return a clone
return $date_string;
return $date_string->clone();
}
my $regex;
-