







Abraço a todos

Posted 12/08/2005, 09:59
Posted 12/08/2005, 10:40
Session.LCID = 1046 dti = "20/07/2005": dti = Cdate(dti) dtf = "10/08/2005": dtf = Cdate(dtf) hri = 8: hrf = 18: hriult = 13: hrfult = 16 dt = dti For i = Cdate(dti) To Cdate(dtf) UltDia = Datepart("d", DateSerial(Year(Cdate(i)),Month(Cdate(i))+1, 0)) If WeekDay(Cdate(i)) <> 1 And WeekDay(Cdate(i)) <> 7 Then If Day(Cdate(dtf)) = Day(Cdate(i)) Then hrs_trab = hrs_trab + (hrfult - hriult) Else hrs_trab = hrs_trab + (hrf - hri) End if End if Next Response.Write(hrs_trab)
Posted 12/08/2005, 13:58
dt_inicial = Request("dt_inicial") dt_final = Request("dt_final") Intervalo = DateDiff("h",dt_inicial,dt_final) Response.Write Intervalo
Posted 12/08/2005, 15:18
Mais fácil...
Ou entendi errado...???dt_inicial = Request("dt_inicial") dt_final = Request("dt_final") Intervalo = DateDiff("h",dt_inicial,dt_final) Response.Write Intervalo
A hora deve estar inserida juntamento com a data.
Posted 12/08/2005, 16:37
Posted 12/08/2005, 17:00
0 membro(s), 1 visitante(s) e 0 membros anônimo(s)