Dear All,
I have a problem with my e-leave system. Let say i'm taking a leave on the 14th of November(Leaving) that is on Wednesday and will be returning on 19th of November (Returning) on Monday.. Suppose the duration of my leave is 3 days..but the system count 5 days including saturday and sunday.
This is a part of my coding :-
FIELD Leave_Duration := (@Date(Returning) - @Date(Leaving)) / 86400;
The problem is how to count the leave minus the weekend.
Any help will be appreciated.
TQ
I have a problem with my e-leave system. Let say i'm taking a leave on the 14th of November(Leaving) that is on Wednesday and will be returning on 19th of November (Returning) on Monday.. Suppose the duration of my leave is 3 days..but the system count 5 days including saturday and sunday.
This is a part of my coding :-
FIELD Leave_Duration := (@Date(Returning) - @Date(Leaving)) / 86400;
The problem is how to count the leave minus the weekend.
Any help will be appreciated.
TQ