A multi date selector custom field for Strapi.
released May 15, 2025
npm install @vasild/multi-date-pickerA Strapi custom field plugin that allows selection of multiple individual dates.
The Multi Date Picker plugin adds a new custom field type to your Strapi application, allowing content editors to select and manage multiple individual dates. This is particularly useful for scenarios like:
# Using npm
npm install @vasild/multi-date-picker
# Using yarn
yarn add @vasild/multi-date-picker
# Using pnpm
pnpm add @vasild/multi-date-pickerNow when creating or editing entries, content editors will be able to select multiple dates using the date picker interface.
The field stores dates as a JSON array of strings in ISO format (YYYY-MM-DD):
["2025-05-01", "2025-05-15", "2025-05-30"]The MultiDate component accepts the following props:
| Prop | Type | Description |
|---|---|---|
name | string | Field name |
onChange | function | Callback when value changes |
value | string|string[] | Current value(s) |
hint | string | Helper text shown below the input |
required | boolean | Whether the field is required |
labelAction | React.ReactNode | Custom action displayed next to the label |
label | string | Field label |
disabled | boolean | Whether the field is disabled |
error | string | Error message |
placeholder | string | Placeholder shown in date picker |
The plugin uses Strapi's Design System components to maintain a consistent look and feel with the rest of your admin panel.
// Get entries with a specific date
const entries = await strapi.entityService.findMany('api::event.event', {
filters: {
dates: {
$containsi: '2025-05-01'
}
}
});Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
To contribute to this plugin:
npm installnpm run watchnpm run buildThis project is MIT licensed.
Built with ❤️ for the Strapi community.
Share your work with the community and get it listed in the Strapi ecosystem for everyone to discover and use.
Submit
