jtsage / jtsage-datebox

A multi-mode date and time picker for Bootstrap (3&4), jQueryMobile, Foundation, Bulma, FomanticUI, and UIKit (or others)
http://datebox.jtsage.dev/
Other
474 stars 166 forks source link

defaultValue dates.. month minus 1? #241

Closed erikverheij closed 11 years ago

erikverheij commented 11 years ago

Hi,

If I set defaultValue: [2012,8,1]. Datebox creates the following date; 2012-9-1.

Regards, Erik

jtsage commented 11 years ago

That is correct - in javascript, along with most languges, month is zero-based (0=Jan, 11=Dec) - I left it like this as I felt that using the array method, you were directly manipulating the date object.

erikverheij commented 11 years ago

Ah I see.. thx for the other bug fixes!