SQL server and PHP - specify datetime format -
i have table datetime
columns. in sql server management studio, can see date in yyyy-mm-dd hh:mm:ss.mmmm
format, when select data php mssql extension, - srp 1 2014 12:00:00:000
(instead of 2014-08-01 12:00:00.000
).
is there way change datetime format? (i don't want parse localized datetime in php.)
so found solution...
ini_set("mssql.datetimeconvert", "off");
it turns off localized datetime formatting in mssql extension , datetime yyyy-mm-dd hh:mm:ss
, suitable me.
Comments
Post a Comment