Hello to all.
I have two given dates (in Flex Date format), for example:
date1: 1. July 2010 (thursday)
date2: 15. July 2010 (thursday)
What is the best way to calculate the amount of workdays (Mon, Tue, Wed, Thu. and Fri.) between two dates?
In my case the result is 11 (because included start and end date).
Thanks a lot in advance & Best Regards.
theres an example here:
that'll calculate the number of days between two dates.
loop through the date range and determine what day of the week each particular date is by accessing its properties, if it's a weekend don't count it, if it isn't do.
Okay, so I have to do this. I thought perhaps there will be a smarter solution.