0

Assuming today is 2/11/13. I want find 5 business days ago - so, that would be the 4th.

But using this code:

echo date("n/j/Y",strtotime("-5 weekdays"));

I get the 2/2/2013. However, when entering "-4 weekdays" I get 2/5/2013, which doesn't make sense.

Weekdays include M-F

tester2001
  • 1,053
  • 3
  • 14
  • 24
  • Those functions seem to calculate days between for business days. I want to input a string like "5 weekdays ago" and have it display the date format of it. – tester2001 Feb 11 '13 at 17:54
  • Let me give this a whirl. Weekdays would be defined as M-F just for clarity? – Josh Brody Feb 11 '13 at 17:58

0 Answers0