Convert array value

Hi everyone…just a quick shoot here…
Okay I have series of data which is stored in Array
eg :


 dateArray:Array = [["user1","1-5-2007"],["user1","13-5-2007"],["user10","21-5-2007"]];

then I loop the array to search the data I want to return to another function...my problem is how to format the date value in array to become  this format before  I can make a comparison with this value....

5/21/2007--> this value got from this current date



so the problem is how to convert the value in array from this format

21-5-2007 to this 5/21/2007 for all the values…

p/s:the data I load from dtbase actually that’s why it store that kind of format…any help are appreciated…thanks…