Hi Everyone,
Can somebody help me in how to find 15th working day of a month, working day suggests it doesn’t includes saturday and sunday .
Feel free to asks questions
Immediate help required.
Thanks !!
Hi Everyone,
Can somebody help me in how to find 15th working day of a month, working day suggests it doesn’t includes saturday and sunday .
Feel free to asks questions
Immediate help required.
Thanks !!
Might this pseudo Code help You :-
Dim count = 0
Dim totalDays = (dtpEndDate - dtpStartDate).Days
For i = 0 To totalDays
Dim weekday As DayOfWeek = startDate.AddDays(i).DayOfWeek
If weekday <> DayOfWeek.Saturday AndAlso weekday <> DayOfWeek.Sunday Then
count += 1
End If
Next
lblNoOfDays.Text = count
So you can loop this till the count wont get 15 and return the 15th Working Day
Mark as solution and like it if this helps you
Happy Automation
Best Regards
Er Pratik Wavhal
Did you get a chance to check the below component?
Please let me know if this doesn’t works
Thanks
Thanks for the quick help @Pratik_Wavhal !!
Can you please share a xaml or a running code for the same , it would be very helpful !!
Thanks
Shikhar
Thankyou both of you for the reply
Generated a logic self for the requirement
Cheers !!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.