Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
Article Discussions
»
Article Discussions by Author
»
Discuss content posted by Carla Wilson-484785...
»
Don't forget this date.
34 posts, Page 2 of 4
««
1
2
3
4
»
»»
Don't forget this date.
Rate Topic
Display Mode
Topic Options
Author
Message
Hugo Kornelis
Hugo Kornelis
Posted Friday, April 02, 2010 6:16 AM
SSCertifiable
Group: General Forum Members
Last Login: Today @ 4:45 PM
Points: 5,297,
Visits: 7,240
*groan*
Hugo Kornelis, SQL Server MVP
Visit my SQL Server blog:
http://sqlblog.com/blogs/hugo_kornelis
Post #895552
Paul White
Paul White
Posted Friday, April 02, 2010 6:20 AM
SSChampion
Group: General Forum Members
Last Login: Today @ 10:48 AM
Points: 10,990,
Visits: 10,578
vk-kirov (4/2/2010)
Why the question specifies the slash datetime format (yyyy/mm/dd) while all the answers are in the dash datetime format (yyyy-mm-dd)? This is completely misleading and incorrect!
Awesome! Very funny
Paul White
SQL Server MVP
SQLblog.com
@SQL_Kiwi
Post #895555
vk-kirov
vk-kirov
Posted Friday, April 02, 2010 6:24 AM
Hall of Fame
Group: General Forum Members
Last Login: Thursday, June 13, 2013 8:50 PM
Points: 3,208,
Visits: 4,178
By the way, which event took place on 1776-01-01?
Post #895556
Daniel Bowlin
Daniel Bowlin
Posted Friday, April 02, 2010 6:59 AM
SSCrazy
Group: General Forum Members
Last Login: Yesterday @ 8:36 AM
Points: 2,681,
Visits: 2,423
I knew the answer, but I didn't know the bit about the Gregorian calendar....interesting.
Post #895572
sjimmo
sjimmo
Posted Friday, April 02, 2010 7:46 AM
SSCrazy
Group: General Forum Members
Last Login: Friday, June 14, 2013 7:34 AM
Points: 2,865,
Visits: 2,472
My only complaint is that it is true.
Had to do a conversion back in 6.5 days, and maintain dates going back to 1600's. Had to be a bit creative on that
Good question
Steve Jimmo
Sr DBA
“If we ever forget that we are One Nation Under God, then we will be a Nation gone under." - Ronald Reagan
Post #895616
Carla Wilson-484785
Carla Wilson-484785
Posted Friday, April 02, 2010 8:08 AM
Ten Centuries
Group: General Forum Members
Last Login: Today @ 7:21 AM
Points: 1,360,
Visits: 1,749
SanjayAttray (4/2/2010)
The ultimate guide to the datetime datatypes
http://www.karaszi.com/SQLServer/info_datetime.asp#Why1753
Sanjay,
Thank you for the excellent reference, and its explanation of "Why 1753".
-c
Post #895632
m--S3qU3L
m--S3qU3L
Posted Friday, April 02, 2010 9:20 AM
SSC Veteran
Group: General Forum Members
Last Login: Monday, November 19, 2012 11:30 PM
Points: 290,
Visits: 713
Hi all,
This is an extrapolated question from the actual QoD, but I would like to know the reason (coz of knowledge gaining reason)
Why the 'mmm' part in the RESULT section giving a different value than I entered through the character string as shown below.
SET DATEFORMAT MDY
DECLARE @dmy datetime
SELECT @dmy = '12/31/99 12:13:12:012'
SELECT @dmy
RESULT:
1999-12-31 12:13:12.013
Thanks
big[M]
John
Post #895722
Hugo Kornelis
Hugo Kornelis
Posted Friday, April 02, 2010 9:44 AM
SSCertifiable
Group: General Forum Members
Last Login: Today @ 4:45 PM
Points: 5,297,
Visits: 7,240
bigM (4/2/2010)
Hi all,
This is an extrapolated question from the actual QoD, but I would like to know the reason (coz of knowledge gaining reason)
Why the 'mmm' part in the RESULT section giving a different value than I entered through the character string as shown below.
SET DATEFORMAT MDY
DECLARE @dmy datetime
SELECT @dmy = '12/31/99 12:13:12:012'
SELECT @dmy
RESULT:
1999-12-31 12:13:12.013
Thanks
big[M]
The accuracy of datetime is not to the millisecond, but to 1/300 of a second. So each second is divided into 300 slices of 3 1/3 milliseconds. And because display uses milliseconds, you see the values rounded to the millisecond: 0.000, 0.003, 0.007, 0.010, 0.013, 0.017, .....
Hugo Kornelis, SQL Server MVP
Visit my SQL Server blog:
http://sqlblog.com/blogs/hugo_kornelis
Post #895767
SQLRNNR
SQLRNNR
Posted Friday, April 02, 2010 11:07 AM
SSCoach
Group: General Forum Members
Last Login: Today @ 3:33 PM
Points: 18,858,
Visits: 12,443
Paul White NZ (4/2/2010)
I wonder how long it will be before
someone
complains that this QotD is misleading and incorrect since the question specifies "(yyyy/mm/dd)" format and the answers are all in YYYY-MM-DD format?
Surprised it hasn't happened yet.
Jason
AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server 2008
SQL RNNR
Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #895847
SQLRNNR
SQLRNNR
Posted Friday, April 02, 2010 11:08 AM
SSCoach
Group: General Forum Members
Last Login: Today @ 3:33 PM
Points: 18,858,
Visits: 12,443
Nice question.
Thanks
Jason
AKA CirqueDeSQLeil
I have given a name to my pain...
MCM SQL Server 2008
SQL RNNR
Posting Performance Based Questions - Gail Shaw
Posting Data Etiquette - Jeff Moden
Hidden RBAR - Jeff Moden
VLFs and the Tran Log - Kimberly Tripp
Post #895848
« Prev Topic
|
Next Topic »
34 posts, Page 2 of 4
««
1
2
3
4
»
»»
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.