Time :: Piece has been a core module for a long time, it has the ability to parse a string in a Time :: Piece object, which it can then format for you in 10 gazillion different formats. If Time :: Piece is not installed, you can try to find some of the other hundreds of time modules you can see, listed in cpan. (use one liner: perl -e "use Module :: IHope :: IsHere || die \ 'Not found \'").
`Time::Piece->strptime(STRING, FORMAT)
.