Skip to Content
0
Former Member
Apr 27, 2005 at 08:54 PM

factory date calculations

864 Views

Hi,

I want to do some caculations based on the factory calander. Its like :

date = 04/27/2005.

I want to substract 4 days from this. But in case the new date is a leave day (Saturday/ sunday) then it should return the last working day along with the weekday like monday.

So here its saurday, so it should return 04/22/2005 friday, instead of 04/23/2005 saturday.

Is there a way to do this calculation. Please advise.

Thanks,