I will attach a Python script I wrote to make my using the date command easier. But it does not appear to work perfectly. Please see the following session transcript:

Qt Code:
  1. $ ./datefmt "foo\nymd hm"
  2. +"foo%n%F %R"
  3. $ date +"foo%n%F %R"
  4. foo
  5. 2007-03-29 20:03
  6. $ date $(./datefmt "foo\nymd hm")
  7. date: extra operand `%R"'
  8. Try `date --help' for more information.
To copy to clipboard, switch view to plain text mode 

What is the problem? I am using Konsole from KDE 3.5.6 on Kubuntu Edgy.