ng2-ui / datetime-picker

Angular2 DateTime Picker
https://ng2-ui.github.io/#/datetime-picker
MIT License
121 stars 62 forks source link

I updated ng2-datetime.js to have my stuff working #102

Closed stefanaerts closed 7 years ago

stefanaerts commented 7 years ago

Because in Ng2DateTimePickerDirective.normalizeInput Ng2DateTime.parseDate is called without a dateFormat parameter image

I had to change NG2DateTime image

I added an else{} when there is no dateFormat to send the date back with the default format 'YYYY-MM-DD HH:mm'

Please also update the documentation home page to YYYY-MM-DD HH:mm instead of YYYY-MM-DD HH:MM

allenhwkim commented 7 years ago

Thank you. I will update it later. However, if you create a PR, the change will be much faster.

stefanaerts commented 7 years ago

I changed it local on my laptop,so i can continue. I just wanted to share it with you guys because maybe it can help others.

Kind rg, Stefan.