I’m using a date picker component in my project, and I would like to enhance its functionality by adding predefined shortcuts like:
• Yesterday
• Last 7 Days
• Month-to-Date
• Year-to-Date
The idea is to allow users to select these ranges quickly without manually selecting start and end dates.
Could someone guide me on how to implement this? Are there any libraries or built-in features that support this? If not, what would be the best approach to add custom shortcuts to the date picker?