Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
@startTime =2015-05-30 13:07:29.090
@endTime = 2015-06-05 18:08:58.397

i have starttime and endtime and normally it will return difference as '6.5.1.59'.

But i need the calculation exlcuding saturday & sunday which comes in between.

Please help.

Thanks in advance.
Posted

1 solution

DateDiff is your friend, example here http://www.sqlservercentral.com/Forums/Topic1440451-392-1.aspx[^]
 
Share this answer
 
Comments
Member 8478234 6-Jun-15 7:30am    
Thank you TenmanS14.
However it won't return timestamp right. What i require is timestamp excluding the weekends.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900