Hi,
I'm currently using this fantastic script by Fungus1487 (thanks!) but am having a bit of trouble getting it to detect Saturdays.
For example, when I enter a start date as a Thursday, then enter an end date that's a Friday it'll return 1, fine.
If I enter a date that's a Saturday it'll return 2, when I'd like it to skip the day as it's a weekend.
If I enter a date that's a Sunday it works fine, and skips accordingly, and returns 2.
Everything else is fine though.
Any ideas please? Would really appreciate a bit of help with this, tried alert(odays) to debug it, but that always returns 2 for some reason.
Cheers!