Sometimes users want to get the dynamic date for last X working days which excludes Saturday and Sunday. For example, a user needs to get the last 4 working days and:
- If today is Monday, then last 4 working days would be 'last Friday', 'last Thursday', 'last Wednesday' and 'last Tuesday'
- If today is Tuesday, then last 4 working days would be 'this Monday', 'last Friday', 'last Thursday' and 'last Wednesday'
- If today is Friday, Saturday or Sunday, then last 4 working days would be 'this Thursday', 'this Wednesday', 'this Tuesday' and 'this Monday'
How to display dynamic date for last X working days:
The following steps may be used as a reference and the result will display the last 3 working days:




