In MSSQL I am using datetime as the column type and trying to execute the below mentioned query
select time from tickets where ticket_id = '1';
when i execute the query on sql manager window it shows it correctly with seconds and milliseconds in the output like this
2008-01-30 13:58:04.000
But when i run the sql through PHP 5.2.5 it replaces the seconds and milliseconds with AM/PM
sql1="select time from tickets where ticket_id = '1' ";
$row1=mssql_query($sql1);
$res1=mssql_fetch_assoc($row1);
print_r($res1);
output comes like this
Array ( [time] => Jan 30 2008 1:52PM )
Please help on how to get the full datetime including seconds and milliseconds and not with AM/PM using PHP 5.2.5
Thanks