antiskeptic
Programmer
Everything I have found so far is referring to time of day, or number of hours since a certain date, yadda, yadda, yadda. I need a format of 40:00 hours as opposed to 40.0 hours. The field I am deriving this from is a sum of minutes for a work week, for instance. In my Query, I am using a temp table to collect and sum the minutes/hours a person took for vacation / paid time off. so this is what I've been using, thinking it would work:
then realizing that the dateadd that I was using, only works on a 12 hour cycle..and will not actually just give me the sum of hours into the format I need. *smacking head* DUH!
Does, anyone know how to do this? It's doesn't have to be a "real number"... simply a display for the number of hours calculated by my sum.
Hope I haven't confused too thouroughly. *ha*
Thank you in advance,
Antiskeptic
Code:
convert(varchar(8), dateadd(mi,sum(VacationActualTime),0),8)
then realizing that the dateadd that I was using, only works on a 12 hour cycle..and will not actually just give me the sum of hours into the format I need. *smacking head* DUH!
Does, anyone know how to do this? It's doesn't have to be a "real number"... simply a display for the number of hours calculated by my sum.
Hope I haven't confused too thouroughly. *ha*
Thank you in advance,
Antiskeptic