Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8581

Re: How to eliminate weekends with this date range

$
0
0

Hi Ganesh,

 

Thanks for your reply, I wont get expected result along along with time and date.

 

My code looks like this.

var 1=ToDate([Creation Date] ; "dd/MM/yyyy HH:mm:ss")

var2=ToDate([Modified Date]  ; "dd/MM/yyyy HH:mm:ss")

use this formula for number of  day minus weekened day

=Round( DaysBetween( [Todate];[Fromdate] )/7;0)*2+If DayName(First([Todate]))="Sunday" Then 1 ElseIf DayName(First([Todate]))="Saturday" Then 2

 

 

It wont work for me.

 

Please suggest me how to code this.


Viewing all articles
Browse latest Browse all 8581

Trending Articles



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