I have a question for you, what if in the SQL query, you would have something like this:
...
#my @columns = qw( id account_number, date);
my $sql = "select id, account_number, CONVERT(VARCHAR(10),date,101) as 'the date'
from my_table where id <>''
order by date desc";
...