Added rangeConjunction by Roywcm · Pull Request #3049 · flatpickr/flatpickr · GitHub
Skip to content

Added rangeConjunction - #3049

Open
Roywcm wants to merge 2 commits into
flatpickr:masterfrom
Roywcm:master
Open

Roywcm wants to merge 2 commits into
flatpickr:masterfrom
Roywcm:master

Conversation

@Roywcm

@Roywcm Roywcm commented Sep 20, 2024

Copy link
Copy Markdown

I would like to retrieve the start and end dates as an array within my system. Currently, the start and end dates are merged into a single string using a localized separator. However, in a multilingual system, splitting this string becomes challenging due to the varying separators used across languages.

To address this, my proposal is to introduce a new property: rangeConjunction. This would allow us to specify a consistent separator, such as a comma or dash, making it easier to convert the string back into an array with distinct start and end dates. When the rangeConjunction is not set, it will fall back to the localized separator.

Let me know if this works or if you’d like any further adjustments!

Zierk59 pushed a commit to Zierk59/flatpickr that referenced this pull request May 12, 2025

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant