$thread[startdate] = vbdate("Y-m-dTH:i:sP", $thread["dateline"]); $thread[lastdate] = vbdate("Y-m-dTH:i:sP", $thread["lastpost"]);