Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA start date plus or minus a number of calendar days, working days, weeks or months, with a holiday list, that gives the resulting date and weekday. Use this when someone needs the date that is thirty days from now or ten working days before a deadline.
Derived from this item’s props table, because it declares no controls of its own. This item has no standalone playground, so changes update the code, the share link and the AI prompt.
Use it when someone needs the date that is thirty days from now or ten working days before a deadline.
Do not use it for the gap between two dates; use date-difference-calculator.
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Default | Description |
|---|---|---|---|
| start | string | today | Start date. |
| holidays | string[] | [] | Non-working dates for working-day maths. |
| onValueChange | (result: { date; start; amount; unit; direction }) => void | - | The result date. |
The pattern ships with a Testing Library test (add-subtract-days-calculator.test.tsx) that covers calendar days, working days both ways over weekends and holidays, weeks, months with clamping.