My dates come in via database query, so in the above code I'm just showing what is held in the array when it is imported.

What I need is something like:
Tempw(n, 1) = Tempw(n,1) with dateformat that can be sorted.