I can't figure this out from the documentation, but I want to set the default date of a datepicker input in the same format as the datepicker's display without having to do my own parsing. E.g.:
$("#dp").datepicker({
altField: '#helper',
altFormat: 'yy-mm-dd',
formatDate: 'm/d/Y',
}).val($("#helper").val())
This will display the datepicker in put as 2013-03-07
(as you can see: http://jsfiddle.net/zaG5z/) However when you select a date it does display it as "m/d/Y." Even selecting the same date makes it 03/07/2013
. Is there any way to trigger that format from the initial value?