my %th; @th{qw( year month day )} = /(....)(..)(..)/; $dt = DateTime->new( %th );