I'm using pickadate:
I have a picker that have his initial value to: 2016-04-14 (yyyy-mm-dd), but when I open the picker, this date is not selected.
When I select a new date, format change in input, to 14 April 2016, I don't want this behaviour....
Here is my jquery:
var fecha = $('.fecha[data-id=' + count + ']');
console.log(fecha.val()); // gives 2016-04-01
fecha.pickadate({
format: 'yyyy-mm-dd',
today: 'hoy',
formatSubmit: 'yyyy-mm-dd'
});
var picker = fecha.pickadate();
picker.on({
start: function () {
picker.set('select', fecha.val(), {format: 'yyyy-mm-dd'})
}
});
I can't find a way with apis
Any idea what's wrong??