Skip to content
This repository has been archived by the owner on Feb 14, 2019. It is now read-only.

The DateFormat Bug #715

Open
gwsh1234 opened this issue Feb 12, 2018 · 0 comments
Open

The DateFormat Bug #715

gwsh1234 opened this issue Feb 12, 2018 · 0 comments

Comments

@gwsh1234
Copy link

If you dateformat is 'yyyy' or others which is only numbers , the number data will cause datetimepicker throw a exception.
Before parse date data, you should judge its number type or not. If it is number type, you should convert it to String type.
Maybe like this.
if(typeof date == 'number'){ date = String(date); }
I insert that code in bootstrap-datetimepicker.js file after parse the data.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant