I need to convert a dynamically generated date from something like 20-Apr-2013 to 20.04.13. So far I managed to convert the month and change the spacers. But converting the year still escapes me. here is what I came up with so far. How to move forward? I need to convert a dynamically generated date