Depending on what you are doing, you can force your string to a DateTime object, for example:
use DateTime::Format::MySQL; my $dt = DateTime::Format::MySQL->parse_datetime( '2003-01-16 23:12:01' );
Then you can easily display your temporary string in a different format, perform calculations with it, etc.
You did not specify what the string generates in this particular format, but for a large number of input sources, there are DateTime :: Format :: modules.
Ether source share