views:

569

answers:

4

For some reason, my SQL installation isn't working :)

SELECT DATEADD(s,1234567890, '19700101')

Maybe this site would help (link from Moose).

+3  A: 

I get this:

2009-02-13 23:31:30.000
casperOne
Interesting. That looks familiar... :)
Drew Noakes
+2  A: 

DATE_ADD (not DATEADD) has just two arguments.

Gumbo
I guess it depends upon which SQL you use. At any rate, the result quoted above looks familiar today for some reason...
Drew Noakes
Maybe I misread “my SQL” as MySQL.
Gumbo
Haha, sorry about that. MyMISTAKE :)
Drew Noakes
A: 

Total awesomeness!

Robin Day
Robin, I award you the correct answer for this question for being so astute :) I couldn't believe this when I saw it. Geeks the world over should have a second's silence.
Drew Noakes
Question will be closed once people actually realise what you're on about unfortunately.
Robin Day
Robin -- I'll give you the answer tomorrow just to lure more people to this question in the meantime. Shame that SO doesn't show the date that the question is asked, just how long ago.
Drew Noakes
I don't see why it should be closed. It's a real question about programming.
Drew Noakes
How about you get a life and ask some real programming question instead of some trivia that's been around the nets for weeks.
DV
Thank you DV for your feedback. Very valuable.
Drew Noakes
+1  A: 

more geekiness (not mine)

Moose
Great stuff, thanks!
Drew Noakes