Reputation: 3623
Is there a data type which represents time of day? Such as a datetime data type without the date.
when i format 41 seconds into a datetime data type this is what I get:
1/1/1900 12:00:41 AM
I'm trying to store a duration of time in a table.
Upvotes: 0
Views: 500
Reputation: 64645
In SQL Server 2008, there is a Time
data type which only stores the time. In versions of SQL Server prior to 2008, your only choice is the DateTime
data type (and SmallDateTime
) which stores both the date and the time. However, there are means in most languages including T-SQL to show the time portion. What are you trying to accomplish?
Upvotes: 1
Reputation: 43984
Not in 2005 no, there are plenty of discussions around on this subject.
Upvotes: 0