I use the Convert function as follows (a little example):
SELECT CONVERT(datetime,MyDateField,101)
This has always worked. Now if I wanted the British format, I'd put a 103 in the end. That also worked in the past.
BUT the weird thing now is that the CONVERT function is expecting MyDateField in dd/mm/yyyy format instead of mm/dd/yyyy as was always the case before. It really has nothing to do with the 101, 103, etc as that is the output. It has to do with how the CONVERT function interprets the incoming date.
Is there a setting or toggle that anyone knows of to tell CONVERT which date format to expect?
Thanks!
SELECT CONVERT(datetime,MyDateField,101)
This has always worked. Now if I wanted the British format, I'd put a 103 in the end. That also worked in the past.
BUT the weird thing now is that the CONVERT function is expecting MyDateField in dd/mm/yyyy format instead of mm/dd/yyyy as was always the case before. It really has nothing to do with the 101, 103, etc as that is the output. It has to do with how the CONVERT function interprets the incoming date.
Is there a setting or toggle that anyone knows of to tell CONVERT which date format to expect?
Thanks!