From: f dot ledoeuff at hud dot ac dot uk
Operating system: win nt4
PHP version: 4.3.1
PHP Bug Type: MSSQL related
Bug description: Date format problem

Description:
------------
Hi all,

I am having troubles to save dates in my mssql database using PHP
My query is perfectly fine:
insert into tblactivity_dts (actid, start_date, end_date) values
('885347739','10/12/2003','10/01/2004')
but the dates saved in my DB are 12/10/2003 and 01/10/2004

However if I run the query in sql server enterprise manager, the dates are
stored properly.

I have set the server configuration to british and set
mssql.datetimeconvert to 0 ....

fred


--
Edit bug report at [url]http://bugs.php.net/?id=24966&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=24966&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=24966&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=24966&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=24966&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=24966&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=24966&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=24966&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=24966&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=24966&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=24966&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=24966&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=24966&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=24966&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=24966&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=24966&r=gnused[/url]