Hi igrasso,
Thanks for the gif, it was really helpful, because as I said in my case the date remains in the same format, only separator changes and here is why:
Date picker in Highcharts is actually an <input> elements of type="date", and as you can read here:
https://developer.mozilla.org/en-US/doc ... input/date
Note: The displayed date format will differ from the actual value — the displayed date is formatted based on the locale of the user's browser, but the parsed value is always formatted yyyy-mm-dd.
And this explains that behaviour. When you click on the input to change the date, the format changes based on your localization and we can't really do anything about that.
In Highcharts, input type depends on
rangeSelector.inputDateFormat(
https://api.highcharts.com/highstock/ra ... DateFormat).
inputEditDateFormat works only for text type input as informed in the API docs:
https://api.highcharts.com/highstock/ra ... DateFormat
An internal function
preferredInputType is setting the type of the input to text only if
%L is found in the format option (that is if milliseconds should be shown). The function
preferredInputType is not accessible to overwrite or change. However, the type of the input could be changed after it is created and it could work with the format option but it will have to be a text type input.
Demo: https://jsfiddle.net/BlackLabel/fuezd95b/
This approach should solver issue with changing date format, but unfortunately you would lose some date input functionalities like calendar date picker.
Let me know if you have any further questions!
Regards!