Hi guys,
I am currently writing a report in which I will need to find the working hours between two date time values.
One value will be 20080101 09:00 and another 20080201 17:00
Idealy a function something like
WORKINGHOURS('20080101 09:00','20080201').
WORKINGHOURS('FIELD1','FIELD2')
I know I am asking a lot but this would be amazing if someone had an idea how to do this?
I have tried a million and one CASE WHEN's when using the DATEPART specifing the day etc I still can't crack it.
Does anyone have a simple solution?
Thanks
Rory
I am currently writing a report in which I will need to find the working hours between two date time values.
One value will be 20080101 09:00 and another 20080201 17:00
Idealy a function something like
WORKINGHOURS('20080101 09:00','20080201').
WORKINGHOURS('FIELD1','FIELD2')
I know I am asking a lot but this would be amazing if someone had an idea how to do this?
I have tried a million and one CASE WHEN's when using the DATEPART specifing the day etc I still can't crack it.
Does anyone have a simple solution?
Thanks
Rory