See the MySQL docs for the DATE_FORMAT() function. That gives a formatted date similar to POSIX::strftime. For example,
$sth = $dbh->prepare <<EOSQL; select DATE_FORMAT(The_Date_Col, '%d/%m/%Y') from the_table where Some_key = ? EOSQL
After Compline,
Zaxo
In reply to Re: Date conversion with Class::DBI
by Zaxo
in thread Date conversion with Class::DBI
by bsb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |