- Joined
- 31 Dec 2003
- Posts
- 5,172
- Location
- Barrow-In-Furness
MS SQL
Just to confirm, I need to store the number of hours a user has spent doing something, am I correct using the smalldatetime field for the MS SQL database?
I will eventually need to be able to calculate totals using SQL Reporting Services so it's important that the hours add up correctly (to 60 minutes, not 100).
ASP.NET
I'm trying to find the correct sort of formatting to use? Short time stores the time as 9:50AM, which isn't what i'm after.
I need to store the hours as in 1 hour, or 01:00:00 (1 hour, 0 minutes, 0 seconds) or just 01:00 for 1 hour. I do need minutes but seconds are not required.
I can't find the right formatting for this, would Long time be more suited?
Just to confirm, I need to store the number of hours a user has spent doing something, am I correct using the smalldatetime field for the MS SQL database?
I will eventually need to be able to calculate totals using SQL Reporting Services so it's important that the hours add up correctly (to 60 minutes, not 100).
ASP.NET
I'm trying to find the correct sort of formatting to use? Short time stores the time as 9:50AM, which isn't what i'm after.
I need to store the hours as in 1 hour, or 01:00:00 (1 hour, 0 minutes, 0 seconds) or just 01:00 for 1 hour. I do need minutes but seconds are not required.
I can't find the right formatting for this, would Long time be more suited?