in reply to Problem with s///

You might also consider POSIX strftime or using the list returned by localtime() if what you need is substantially different from the scalar output.

The PerlMonk tr/// Advocate