Dec 3, 2003 #1 ajacode Technical User Aug 21, 2002 66 US IS the beginning of a new day in Date Time format in SQL server 2000: A) 12:00:00 AM OR B) 00:00:00 AM ? C) Makes no Difference I have heard that A is actually 12 Noon a nanosecond before the PM cycle since PM is actually 12:00:01 Thanks for the Reply
IS the beginning of a new day in Date Time format in SQL server 2000: A) 12:00:00 AM OR B) 00:00:00 AM ? C) Makes no Difference I have heard that A is actually 12 Noon a nanosecond before the PM cycle since PM is actually 12:00:01 Thanks for the Reply
Dec 3, 2003 #2 Jamfool IS-IT--Management Apr 10, 2003 484 GB 2003-12-03 23:59:59.999 end of today 2003-12-04 00:00:00.000 Start of tomorrow Upvote 0 Downvote
Dec 3, 2003 #3 SQLBill MIS May 29, 2001 7,777 US 12 AM is Noon. Here's another way to look at it: 'regular time' 24hr time 00:00 0000 01:00 am 0100 06:00 am 0600 12:00 am 1200 01:00 pm 1300 06:00 pm 1800 etc.... -SQLBill Upvote 0 Downvote
12 AM is Noon. Here's another way to look at it: 'regular time' 24hr time 00:00 0000 01:00 am 0100 06:00 am 0600 12:00 am 1200 01:00 pm 1300 06:00 pm 1800 etc.... -SQLBill
Dec 3, 2003 #4 Calen Programmer Sep 19, 2002 26 US Sorry to disagree SQLBill, but 12:00 AM is Midnight. 12:00 PM is Noon. If you set a datetime variable to a date with no time, it will use 00:00.00 as the default time. Try this in Query Analyzer: DECLARE @Time DateTime SET @Time = '1/1/1' PRINT @Time The result is: Jan 1 2001 12:00AM Calen Upvote 0 Downvote
Sorry to disagree SQLBill, but 12:00 AM is Midnight. 12:00 PM is Noon. If you set a datetime variable to a date with no time, it will use 00:00.00 as the default time. Try this in Query Analyzer: DECLARE @Time DateTime SET @Time = '1/1/1' PRINT @Time The result is: Jan 1 2001 12:00AM Calen
Dec 3, 2003 #5 Calen Programmer Sep 19, 2002 26 US ajacode, To answer your question: C). 12:00:00 AM is the same as 00:00:00 and SQL Server would be happy with either as an input. Upvote 0 Downvote
ajacode, To answer your question: C). 12:00:00 AM is the same as 00:00:00 and SQL Server would be happy with either as an input.
Dec 3, 2003 #6 SQLBill MIS May 29, 2001 7,777 US Calen, The things lack of sleep do to me. I can't type, I can't think. Oh well...thanks for correcting me. -SQLBill Upvote 0 Downvote
Calen, The things lack of sleep do to me. I can't type, I can't think. Oh well...thanks for correcting me. -SQLBill
Dec 3, 2003 Thread starter #7 ajacode Technical User Aug 21, 2002 66 US Thanks Everybody, This subject as small as it is can generate a number of approaches. I think you for your contributions all.. Happy HolidaysPS My 6 year old can now tell Santa what the proper time for him to arrive <grin> AJACode Upvote 0 Downvote
Thanks Everybody, This subject as small as it is can generate a number of approaches. I think you for your contributions all.. Happy HolidaysPS My 6 year old can now tell Santa what the proper time for him to arrive <grin> AJACode