toBusinessDayLabel

fun LocalDate.toBusinessDayLabel(from: LocalDate = Clock.System.todayIn(TimeZone.currentSystemDefault())): String(source)

Returns a human-readable business-day label.

  • 0 → "Today"

  • 1 → "Tomorrow"

  • -1 → "Yesterday"

  • N → "In N business days" / "N business days ago"

Weekend dates are normalized to the next business day for the label calculation.

Example: LocalDate(2024, 3, 4).toBusinessDayLabel(LocalDate(2024, 3, 6)) → "In 2 business days"