We add input masking to flatpickr in bug 33703 but we explicitly disable it for the range case which is used in bookings. There are options to support this in the Maskito library too, so we could consider adding it back for bookings inputs too.
+1. Happy to work on this Martin.
Created attachment 165441 [details] [review] Bug 36342: Add Maskito date range support To test: 1. Make some items bookable by going to catalogue/moredetail.pl?biblionumber=X 2. On the toolbar for that record you should now see "Place booking" 3. Try placing a booking and adding the date range for "Booking dates" manually. 4. Play with the DateFormat system preference to make sure this works for all supported date formats.
Created attachment 167180 [details] [review] Bug 36342: Add Maskito date range support To test: 1. Make some items bookable by going to catalogue/moredetail.pl?biblionumber=X 2. On the toolbar for that record you should now see "Place booking" 3. Try placing a booking and adding the date range for "Booking dates" manually. 4. Play with the DateFormat system preference to make sure this works for all supported date formats. Signed-off-by: David Nind <david@davidnind.com>
Testing notes (using KTD): 1. Example formats used to enter date range directly for bookings: 05/29/2024 to 05/31/2024 29.05.2024 to 31.05.2024 29/05/2024 to 31/05/2024 2024-05-29 to 2024-05-31
Doesn't apply anymore :/