in reply to munging the date for various uses

Good!

If you use POSIX::strftime you could improve your sub by accepting some integer value:

The more possible outputs you could add, the more useful sub it would become. Perhaps, having your own module of useful subs to load with every code you write...