I'm messing with the same type of problem. My problem is pulling B_Posted and B_Last_Posted from the database. When I manually look at the database, and plug in the field for one of the dates, the following line works as well for date conversion.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.