I'm back to you with a question of mine, simple for everyone but hard for me

I have this data which I retrieve from a database
Code: Select all
put revDataFromQuery(, , conn, sqlGodute) into myArray
21 2018-12-23 7 Ferie
22 2018-12-22 8 ROL
24 2019-03-27 1 ROL
30 2019-04-29 4 Banca Ore
my goal is to extract all the dates to modify them before showing them in a datagrid.
To do this, go write this
Code: Select all
set the itemDel to tab
repeat with x = 1 to the number of lines of myArray
answer item 2 of line x of myArray
put item 2 of line x of myArray into miadata
convert miadata to short date
answer miadata
end repeat
No convert format works
What the hell am I wrong?