in reply to Formatting date while parsing CSV

This problem is one of the reasons why Borodin (in your SO cross post) suggested to wrap this in a subroutine which accepts 3 args (a ref to the var, the input format, and output format). Doing that will allow you to have a consistent way to make all of the format adjustments.