Date with Z appended causes SQL Server to complain

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



SQL Server doesn't seem to be able to convert xml dates in to a datetime. I
am sending an xml message to SQL Server to instruct it to call a stored
procedure. One of the parameters is a date. The date is set to 2005-10-10Z.
This is a valid xml date but SQL Server complains about it with this
message:

Details "HRESULT="0x80040e07" Description="Error converting data type
nvarchar to datetime."

Without the Z at the end it works fine. Is there a way to get SQL Server to
parse a date in that format?

--
McGeeky
http://mcgeeky.blogspot.com



.



Relevant Pages