in reply to date conversion

You could use substr to insert the slashes and the century into your data as it is already in the correct basic format. For example, substr $data, 2, 0, "/"; would insert a slash after the month into your date. Whether to insert "/20" or "/19" before the year still needs to be decided based on the last two digits of your date (or any other assumption you are willing to make).