September 27, 2019 at 12:00 am
Comments posted to this topic are about the item Printing Dates
September 27, 2019 at 4:33 am
The dates in the question and in the answers do not match ๐
September 27, 2019 at 6:29 am
Nice, easy one, thanks Steve
____________________________________________
Space, the final frontier? not any more...
All limits henceforth are self-imposed.
โlibera tute vulgaris exโ
September 27, 2019 at 7:05 am
Wouldn't '2019-01-18 20:23:10' print as Sep 1 2019 8:23 PM? ๐
Thanks & Regards,
Nakul Vachhrajani.
http://nakulvachhrajani.com
Follow me on
Twitter: @sqltwins
September 27, 2019 at 8:05 am
How does 2019-01-18 end up being Sep 1, 2019 too? ๐
September 27, 2019 at 8:12 am
The correct answer is not available as an option
September 27, 2019 at 8:28 am
Looking at the available answers, the only logical response would be that it would fail, since all the other answers have both date and time that doesn't match the input at all. But knowing that PRINT happily works with datetime, I just went ahead and picked the answer with the matching format.
It will be interesting to read Steve's explanation. My guess is he got two QOTD-s mixed up.
September 27, 2019 at 8:57 am
Confused, dates do not match but the print answer is wrong as well. Looking forward to the explanation.
September 27, 2019 at 11:26 am
I agree with all the answers above, apart from Stewart Campbell who not only found it "easy" but apparently has a version of SQL Server that works differently from everyone else's! ;ยฌ}
September 27, 2019 at 11:30 am
The option answers are all wrong but only 1 is in the proper format so I choose that.
September 27, 2019 at 12:41 pm
I think the question is broken, the correct answer is 'Jan 18 2019ย 8:23PM'
๐
September 27, 2019 at 1:22 pm
I think the question is broken, the correct answer is 'Jan 18 2019ย 8:23PM'
๐ย
That's what I got when I ran it, after assuming that the date mismatch was a hint that the error was the answer.
September 27, 2019 at 1:30 pm
We aren't on SQL Server 2017, maybe we don't want to upgrade if this is the type of date conversion you get.ย Just a joke, since the answers available have to be incorrect.
-------------------------------------------------------------
we travel not to escape life but for life not to escape us
Don't fear failure, fear regret.
September 27, 2019 at 2:18 pm
Yes,ย the question and answers do not match.ย That can only be the true answer.
September 27, 2019 at 2:23 pm
I think this question is an excellent example of why you should never rely on defaults. ๐
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 15 posts - 1 through 15 (of 20 total)
You must be logged in to reply to this topic. Login to reply