primeng
primeng copied to clipboard
this.value in calendar is sometimes a string make the code fails when calling date methods like getFullYear
this.value in calendar is sometimes a string make the code fails when calling date methods like getFullYear

prime-ng rc3
Seems to be fixed in prime-ng rc4.
Have this problem in 1.1.4. Init Calendar with date in code, then open page and you get string instead of date. But if you select any day then there is a date in this.value.
This should be fixed in recent PrimeNG release, please try with it and if the issue persists drop a comment with along with a test case based on plunkr below and we'll review again.
http://plnkr.co/edit/VZbdZfQ7SuTV87tTkbYR