Open digitalxpIT opened 9 years ago
Hi! I had this problem too but with Meteor. Even if I set the datepicker to a default date, it will open the picker on the current date. I thought the problem was so complex that I had to use picker methods just to set it up.
I later found out that the value I'm setting is in different format (Wednesday, March 10, 2015) than my pickadate format (Wednesday, 10 March, 2015). I found it by accident. Wew. After changing my default date to my pickadate format, the picker now displays the correct format. :)
I'm using materialize that use pickdate.js in its framework. I'm also using angularjs in a website. So I've an input fields to change birthday:
input type="date" class="datepicker" ng-model="profilo.nascita"
My problem is that if I set my birthday, for example, on 24-02-1977 when I open datepicker, start from today! If I change date from picker, set, and then re-open, the picker start from the last selected date!
Is it an angular problem?!