palantir/blueprint

Extend default shortcuts of date range picker with MTD and YTD

Open

#5268 opened on Apr 24, 2022

View on GitHub
 (1 comment) (0 reactions) (0 assignees)TypeScript (20,263 stars) (2,167 forks)batch import
Domain: APIP2Package: datetimeType: enhancementhelp wanted

Description

Environment

Package version(s): Latest Blueprint version Browser and OS versions: Latest Chrome version

Feature request

It would be great to extend the default shortcuts of the date range picker with the following options:

  • MTD: Month-to-date
  • YTD: Year-to-date

Examples

MTD: Today is April 24th, 2022. The month-to-date option would include the range from 01-04-2022 to 24-04-2022. YTD: Today is April 24th, 2022. The year-to-date option would include the range from 01-01-2022 to 24-04-2022.

Contributor guide