typebot.io
typebot.io copied to clipboard
Cross browser date issue
Hey there,
Chrome and Safari both handle dates from the date input block differently and I can't find a method that will capture the intended selection correctly.
If you try and parse a date in Safari, for example using new Date(), it gets days and months mixed up.
The only solution I can think of at the moment is to detect which browser the user is using, and format the dates accordingly.
Is there a better solution?
Thanks, David