My code:
<input type="text" id="testdate" name="testdate" value="2017-01-01" />
<script>
$('#testdate').datepicker();
$('#testdate').datepicker('option', 'dateFormat', 'yy-mm-dd');
$("#testdate").datepicker('setDate', new Date('2017-01-01 12:00:00'));
</script>
JS Fiddle: https://jsfiddle.net/g0uyok13/
In Google Chrome it shows 2017-01-01 in the text input area. In Firefox it shows today's date (atm 2016-02-24). I'd like it to work in Firefox the same way as it works in Google Chrome.
Any ideas?