S
sorabh
Hi guyz
i have value in NettHours which is a date type.
NettHours = Resolve date - Create date
Now i need to calculate how much is NettHours a percent of
say 24 hours.
how to write: PercentageH = NettHours/ 24
i tried this....
PercentageH =
NettHours/formatdatetime("24:00:00",vbgeneraldate)
will this work.... i havent F5 this yet...
any better ideas on how to manipulate date in VBA
will Clng help.. if yes Clng what ? is it Clng(cdate(24:00:00) ????
help:
i have value in NettHours which is a date type.
NettHours = Resolve date - Create date
Now i need to calculate how much is NettHours a percent of
say 24 hours.
how to write: PercentageH = NettHours/ 24
i tried this....
PercentageH =
NettHours/formatdatetime("24:00:00",vbgeneraldate)
will this work.... i havent F5 this yet...
any better ideas on how to manipulate date in VBA
will Clng help.. if yes Clng what ? is it Clng(cdate(24:00:00) ????
help: