Append file name with modified date

I am trying to append file names with the modified date. What am I doing incorrectly?

<?xml version="1.0"?>
<button display="both" effect="gray">
   <label>Append Modified Date</label>
   <function type="normal">
      <instruction>Rename PATTERN="*" TO="*-{modified|D#yyyy-MM-dd}" AUTORENAME TYPE=dirs</instruction>
      <instruction>Rename PATTERN="*.*" TO="*-{modified|D#yyyy-MM-dd}.*" AUTORENAME TYPE=files</instruction>

Add the FILEINFO argument to enable things like {modified} in the rename.

Add the FILEINFO switch to both commands.

Leo faster again.. o)