Forum Moderators: coopster
i used sort function and this is what came out
1 = ¦S¦6/24/07¦S¦
2 = ¦S¦7/1/07¦S¦
3 = ¦S¦7/1/07¦S¦
4 = ¦S¦7/14/07¦S¦
5 = ¦S¦7/15/07¦S¦
6 = ¦S¦7/8/07¦S¦
i want it to be in this order
1 = ¦S¦6/24/07¦S¦
2 = ¦S¦7/1/07¦S¦
3 = ¦S¦7/1/07¦S¦
4 = ¦S¦7/8/07¦S¦
5 = ¦S¦7/14/07¦S¦
6 = ¦S¦7/15/07¦S¦
how can i do this?
Mr. Gecko
You should take your current array and make a new array with timestamps instead of dates:
$timeStamp = strtotime($data[# of date field]);
Sort the new array on the timestamp field and then you can convert it back using:
$data[# of data field] = date("m/d/Y",$timeStamp);
Hope this makes sense to you.