In our web based software there is a date input which works well in Chrome, Edge and Opera according to localization, but it doesn't work in Firefox and Safari.
As a workaround we built the Modernizr extension like this:
<script>
$(function(){
if (!Modernizr.inputtypes.date) {
$('input[type=date]').datepicker({
dateFormat : 'yy-mm-dd'
}
);
}
});
</script>
The date shows well with the default value e.g. 2017-11-02 but when the user clicks in it the format changes and it sets a new date (1902 jan. 2).