# Convert array value

**URL:** <https://forum.kirupa.com/t/convert-array-value/226404>\
**Category:** Uncategorized\
**Created:** [May 21, 2007, 8:10am UTC](https://forum.kirupa.com/t/convert-array-value/226404 "2007-05-21T08:10:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pixeldude](https://avatars.discourse-cdn.com/v4/letter/p/57b2e6/32.png) [@pixeldude](https://forum.kirupa.com/u/pixeldude)\
**Post date:** [May 21, 2007, 8:10am UTC](https://forum.kirupa.com/t/convert-array-value/226404/1 "2007-05-21T08:10:54Z")

</div>

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

```auto

 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…
