My Oracle Support Banner

How to Compute Business Days for a Date Range in SQL or PLSQL (Doc ID 1014162.6)

Last updated on MAY 30, 2023

Applies to:

PL/SQL - Version and later
Oracle Database - Enterprise Edition - Version and later
Oracle Database Cloud Schema Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.


 The Oracle SQL*Plus or PL/SQL user wishes to subtract two dates and calculate the number of business days between them, by excluding weekends.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.