The bdate_range function automatically adjusts the start and end dates to the nearest weekday before generating the range of business days.