I don't use the DateTime modules, but the Time::Piece::MySQL module will convert to and from MySQL date strings.
use Time::Piece::MySQL; my $time = Time::Piece->from_mysql_datetime( $mysql_datetime ); print $time->mysql_datetime;
You might be able to use it, or learn enough to write your own module.
- Cees
In reply to Re: Converting MySQL datetime values to DateTime objects
by cees
in thread Converting MySQL datetime values to DateTime objects
by jonadab
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |