I\'m grabbing some information from a database and the record is in an MSSQL DateTime format, when I return it, it shows in my array as follows:
[arrayItem] =>
This worked for me
date('Y-m-d', strtotime($rs->Fields('time')->value)
For Adodb connection on MSSQL Server