Format Date with fourteenth weekday
-
Hello,
I would like to set a date format that shows day month and year, dynamically, 14 working days following the date of the current day (therefore without including Saturday and Sunday).I tried to use this function,
[wp-dt-custom format=”j F (l)” days=”+14″ next=”mon, tue, wed, thu, fri”]but unfortunately the 14 days are counted sequentially without skipping the holidays. It is correct that it does not show the day on Saturday and Sunday, but the day count is still calculated. So in 14 working days it may be 3 or 4 weeks before there is the day I need to show. Since there is an extra week, in some cases, two extra days are calculated in the count and therefore the result is not correct.
I also tried another function, but unfortunately it goes up to 12 days.
[wpdts-date start=”twelfth weekday”]Unfortunately it does not accept the number ‘fourteenth’
Do you have any suggestions to solve?
Thank you very much
Nicola
- The topic ‘Format Date with fourteenth weekday’ is closed to new replies.