Working days

Count working days between two dates

Counts working days from one date to another, both included, and lists each day off with its reason. At most 366 days.

get/v1/working-days

Request

  • Base URL: https://api.dharun.dev
  • URL: https://api.dharun.dev/v1/working-days
  • Auth: none declared

Query parameters

fromstring required

First date, YYYY-MM-DD.

tostring required

Last date, YYYY-MM-DD.

calendar'bank' | 'market' | 'settlement' | 'central'

bank (default; needs state), market (NSE trading), settlement (NSE clearing) or central (central government offices).

statestring

State code or name. Required for the bank calendar.

officestring

Bank calendar only. One Reserve Bank office's list, such as Srinagar or Kochi, for a state with several offices (Maharashtra, Uttar Pradesh, Jammu and Kashmir, Kerala). Without it, a day off at any of the state's offices counts.

Response

Success

dataunknown required

Changes

No recorded changes to this operation across all 1 revision of this API.