Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Calculate number of hours between two date field excluding saturday and sunday

$
0
0
Hi everyone,

My office working hour is from 9-5. There are two default date field in SharePoint list which are created and modified. I have created a calculated field in which I want the difference between created and modified in hours and minute excluding weekends and off working hour. For an example item is created in Monday 4 pm and updated on Tuesday 10 am the required result should only 3 hour. Also if  item created on Friday 4 pm and updated on Monday 10 am then also required result will be 3 hr means calculated field should not count the hour of Saturday and Sunday.

Thanks in advance!

Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>