If you can use node-set as extension to your xslt 1.0 processor you can try this.
The output will be:
20130110
Update doe to additional question in command:
You can call the template at any place where you have used
before.
Or you can assign the result to an new variable and use this.