How To Calculate the Number of Week Days Between two Dates

If the start date and end date are both week days, then the total number of week days in between is simply:

(total difference in days) - (total difference in weeks) * 2

or
 DateDiff(dd, @start, @end) - DateDiff(ww, @start, @end)*2

... since the DateDiff() function with weeks returns the number of week "boundaries" that are crossed; i.e., the number of weekends.

If you have a table of holidays, then you can simply subtract them out as well:

DateDiff(dd, @start, @end) -
DateDiff(ww, @start, @end)*2 - 
(select count(*) from holidays where holiday_date between @start and @end)

Now, what if the start day or the end day is on a weekend?  In that case, you need to define what to do in those situations in your requirements.

For example, if the start date is Sunday, Nov 20th, and the end day is Monday, Nov 21st -- how many week days are between those dates? There's no universal correct answer; it could be 0, or 1, or perhaps even "undefined" (null) depending on your needs.

84 Responses to “How To Calculate the Number of Week Days Between two Dates”


  1. Medicamentspot.com. Canadian Health&Care.No prescription online pharmacy.Best quality drugs.Special Internet Prices. Online Pharmacy. Buy drugs online

    Buy:Lipitor.SleepWell.Advair.Zetia.Female Pink Viagra.Amoxicillin.Prozac.Zocor.Wellbutrin SR.Lasix.Cozaar.Ventolin.Female Cialis.Acomplia.Buspar.Nymphomax.Seroquel.Benicar.Aricept.Lipothin….


  2. CheapTabletsOnline.Com. Canadian Health&Care.Special Internet Prices.Best quality drugs.No prescription online pharmacy. Online Pharmacy. Buy drugs online

    Buy:Prednisolone.Zovirax.Retin-A.Accutane.Actos.Valtrex.Prevacid.Mega Hoodia.Zyban.Petcam (Metacam) Oral Suspension.Arimidex.Lumigan.Synthroid.100% Pure Okinawan Coral Calcium.Nexium.Human Growth Hormone….


  3. CheapTabletsOnline.com. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.Best quality drugs. High quality pills. Buy drugs online

    Buy:Prevacid.Accutane.Actos.Zyban.Lumigan.Arimidex.Mega Hoodia.Human Growth Hormone.Prednisolone.100% Pure Okinawan Coral Calcium.Petcam (Metacam) Oral Suspension.Zovirax.Nexium.Synthroid.Retin-A.Valtrex….


  4. NEW FASHION store. Original designers collection at low prices!!! 20 % TO 70 % OFF. END OF SEASON SALE!!!

    BUY FASHION. TOP BRANDS: GUCCI, DOLCE&GABBANA, BURBERRY, DIESEL, ICEBERG, ROBERTO CAVALLI, EMPORIO ARMANI, VERSACE…

  5. Cialis discount

    Buyno prescription…

  6. purchase@effexor.now” rel=”nofollow”>.

    Buyno prescription…

  7. Depakote@official.site” rel=”nofollow”>..

    Buygeneric meds…

  8. Zyvox

    Buydrugs without prescription…

  9. Zyrtec

    Buydrugs without prescription…

  10. xeloda

    Buynow…

  11. xeloda bleeding

    Buygeneric meds…

  12. Zoloft

    Buygeneric drugs…

  13. Voltaren

    Buyno prescription…

  14. Xenical

    Buynow…

  15. Vitamin E

    Buynow…

  16. Yaz

    Buygeneric drugs…

  17. do@you.need.to.fast.for.prograf.levels” rel=”nofollow”>…

    Buywithout prescription…

  18. .

    Buydrugs without prescription…

  19. purpose@of.advair” rel=”nofollow”>.

    Buygeneric meds…

  20. if@you.are.allergic.to.ceclor.can.you.take.augmentin” rel=”nofollow”>…

    Buywithout prescription…

  21. how@long.does.abilify.stay.in.your.system” rel=”nofollow”>…

    Buywithout prescription…

  22. bulk@coral.calcium.powder” rel=”nofollow”>..

    Buygeneric drugs…

  23. does@clonidine.and.lamisil.interaction” rel=”nofollow”>..

    Buywithout prescription…

  24. sexual@side.effects.of.lexapro.vs.paxil” rel=”nofollow”>..

    Buynow it…

  25. aciphex@vs.nexium” rel=”nofollow”>..

    Buygeneric drugs…

  26. pulmicort@or.xopenex.first.when.using.both” rel=”nofollow”>…

    Buyit now…

  27. where@to.buy.acai.berry.zen” rel=”nofollow”>…

    Buyno prescription…

  28. flomax@in.dogs” rel=”nofollow”>.

    Buyit now…

  29. ..

    Buynow it…

  30. Order@Cheap.Abana” rel=”nofollow”>..

    Buynow it…

  31. Buy@Abilify.Online” rel=”nofollow”>..

    Buygeneric meds…

  32. Buy@Cheap.Abilify” rel=”nofollow”>..

    Buynow it…

  33. Purchase@Generic.Abilify.5mg.10mg.15mg.20mg.30mg” rel=”nofollow”>.

    Buynow it…

  34. Order@Generic.Acai” rel=”nofollow”>..

    Buywithout prescription…

  35. Purchase@Cheap.Abilify” rel=”nofollow”>…

    Buywithout prescription…

  36. Get@Abilify.Online” rel=”nofollow”>..

    Buyit now…

  37. Buy@Cheap.Acai” rel=”nofollow”>.

    Buywithout prescription…

  38. Order@Acai.Online” rel=”nofollow”>…

    Buynow it…

  39. Order@Acai.Online” rel=”nofollow”>…

    Buyit now…

  40. Purchase@Discount.Acai” rel=”nofollow”>…

    Buygeneric drugs…

  41. Cheap@Acai.Online” rel=”nofollow”>…

    Buynow…

  42. Purchase@Discount.Energy.Boost” rel=”nofollow”>.…

    Buynow it…

  43. Buy@Cheap.Accupril” rel=”nofollow”>.…

    Buygeneric meds…

  44. Purchase@Accupril.Online” rel=”nofollow”>.…

    Buygeneric drugs…

  45. Buy@Cheap.Aciphex” rel=”nofollow”>.…

    Buygeneric meds…

  46. Cheap@Actonel.Without.Prescription” rel=”nofollow”>…

    Buynow it mou…

  47. Buy@Cheap.Actoplus.Met” rel=”nofollow”>..

    Buygeneric meds qmo…

  48. Buy@Generic.Abilify.Without.Prescription” rel=”nofollow”>..

    Buynow it tly…

  49. Buy@Generic.Acai” rel=”nofollow”>.

    Buygeneric drugs mby…

  50. Cheap@Generic.Acai” rel=”nofollow”>…

    Buydrugs without prescription vrg…

  51. Order@Cheap.Energy.Boost” rel=”nofollow”>..

    Buyno prescription wkp…

  52. Order@Discount.Energy.Boost” rel=”nofollow”>..

    Buyno prescription gdt…

  53. Order@Cheap.Aciphex” rel=”nofollow”>..

    Buydrugs without prescription faj…

  54. Purchase@Discount.Aciphex” rel=”nofollow”>..

    Buyno prescription jui…

  55. Buy@Actonel.Online” rel=”nofollow”>..

    Buydrugs without prescription hak…

  56. Order@Cheap.Actonel” rel=”nofollow”>.

    Buygeneric drugs nih…

  57. Purchase@Actonel.Online” rel=”nofollow”>…

    Buygeneric drugs vbr…

  58. Purchase@Cheap.Actonel” rel=”nofollow”>.

    Buydrugs without prescription xab…

  59. Order@Discount.Advair” rel=”nofollow”>..

    Buyno prescription tao…

  60. Get@Aggrenox.Online” rel=”nofollow”>…

    Buynow fjl…

  61. Order@Cheap.Albenza” rel=”nofollow”>…

    Buynow it sxk…

  62. risperdal@vs.abilify” rel=”nofollow”>.

    Buygeneric drugs…

  63. allegra@generic.purchase” rel=”nofollow”>…

    Buynow…

  64. Search music now US Charts…

  65. sleep aids and half-life

    Buy_it now…

  66. adhd drugs causing hallucinations

    Buy_generic meds…

  67. number of obese in this generation

    Buy_generic meds…

  68. aspirin pain relief dog

    Buy_drugs without prescription…

  69. drug alcohol prevention resilience

    Buy_it now…

  70. research being done to treat hiv

    Buy_generic pills…

  71. serotonin natural sources

    Buy_generic meds…

  72. nursing drug study website

    Buy_drugs without prescription…

  73. planar warts

    Buy_drugs without prescription…

  74. stop smoking phlegm

    Buy_drugs without prescription…

  75. what foods anorexia eat

    Buy_drugs without prescription…

  76. nexium pepsin ac

    Buy_generic drugs…

  77. will the recession become a depression

    Buy_without prescription…

  78. teen girl 16 18.6 bmi

    Buy_generic drugs…

  79. acne scar and pit lamp

    Buy_generic drugs…

  80. synephrine hcl diet pills

    Buy_generic pills…

  81. terry abbot

    Buy_generic drugs…

  82. benicar hct and norvasc

    Buy_it now…

  83. macon georgia drug court

    Buy_without prescription…

  84. canadian@pharmacy.valtrex” rel=”nofollow”>…

    Buygeneric meds…