I have a PDO statement, thus. The data is coming from a SQL Server database:
//Get full record from form108 database
$data = $con->prepare("SELECT CONVERT(varchar, p.WorkBeginDate, 101), * FROM Employee AS e
INNER JOIN EmployeeProjectInfo AS p ON e.empUIN = p.empUIN WHERE e.empUIN = :empuin AND
p.UID = :uid");
$input = array('empuin'=>$_SESSION['UIN'],'uid'=>$_SESSION['ID']);
$data->execute($input);
Everything displays fine except the date. Instead of the desired format, mm/dd/yyyy, I get yyyy-mm-dd. My hope was that the CONVERT() function would work like the DATE_FORMAT() function in MySQL. The data type in the database is date. What am I doing wrong?