Gillardo / ngx-bootstrap-datetime-popup

Date and time picker using ngx-bootstrap library
MIT License
31 stars 14 forks source link

TypeError: date1.getFullYear is not a function #5

Closed juchen0429 closed 7 years ago

juchen0429 commented 7 years ago

Hi Gillardo,

When I input, this is the problem。

ERROR Error: Uncaught (in promise): TypeError: date1.getFullYear is not a function TypeError: date1.getFullYear is not a function

Gillardo commented 7 years ago

Are u using latest release??

juchen0429 commented 7 years ago

yes。

juchen0429 commented 7 years ago

div class="row form-group">

</div

Do I lack some parameters?

Gillardo commented 7 years ago

Can you put this on plunkr or something so i can run it for you and check if ok?

Gillardo commented 7 years ago

What does your .ts controller look like?

Gillardo commented 7 years ago

@juchen0429 fork this plunkr for me and change the code as you have it.

https://plnkr.co/edit/nYNzcgXd9Wz8pxMsPY29

Gillardo commented 7 years ago

@juchen0429 I have found your issue and updated the code for you. v1.2.1 is now released which fixes the issue.

Also released a demo on the above plunkr