I got some code that selects a random date over the last seven days but the date shows up wrong.
$minrandomdate = 1;
$maxrandomdate = 7;
$randomdate = int($minrandomdate + rand($maxrandomdate - $minrandomdate));
my $day = DateTime->today(time_zone=>'local');
$day->subtract( days => $randomdate );
spits out
2018-01-06T00:00:00
How do I change it so it shows up as
01/06/2018? I think I need a %D or %x in there some where.