Basically it is impossible to decode all the dates in that format. As an example, what date is 11197? Is it year 1997, month 11, day 1 or is it year 1997, month 1, day 11?
But if you can solve that problem you should be able to use the [man]date[/man] function to create the date and the [man]substr[/man] function to get the values from the old date.