previous-business-days
date-time →
previous-business-days(
count: integer
) → date
Returns a new date value corresponding to the date passed as the argument, counting backward the business days (being weekdays different of Saturday and Sunday) specified as the parameter. It always returns a business day, as such if the date passed as the argument is a weekend, it considers that this date was the Friday before the argument value.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
count | integer | Yes | The count of business days to move forward. |
Examples
#"2024-01-15 12:30:00" | previous-business-days(2) → #"2024-01-11"
Kind: Function
Scope: temporal
Aliases: temporal-to-previous-business-days, previous-business-day, subtract-business-days