in reply to Working with date

using backticks to get date - not pretty at all - but you should try
  man date
as *NIX date will format its output any which way you want

Better yet search CPAN for a date module that supports your processing functionality.