------ heisenbug: A bug that disappears or alters its behavior when one attempts to probe or isolate it schroedinbug: A bug that doesn't appear until someone reads source code and realizes it never should have worked, at which point the program promptly stops working for everybody until fixed.
If you can't set the dateformat the only option you have is to change the language of the login that is performing the update. It will be English by default which is US and so will interpret dates in M/D/Y format. Change it to British English and it will interpret as D/M/Y format.
This is also not an option as it will affect other areas of the system.
I would usually perform CONVERT(DATETIME, '20/12/2005', 103) but as this date is dd/mm/yy not dd/mm/yyyy.
I am wondering if there is a better method rather than adding '20' to the start of year of '20/12/05' to make it '20/12/2005' (as the date will be within a month of the input).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.