stephanecollot / DatetimepickerBundle

MIT License
57 stars 58 forks source link

Allow passing DateTime objects in pickerOptions #19

Open c960657 opened 9 years ago

c960657 commented 9 years ago

It would be convenient if it was possible to specify startDate, endDate and initialDate as PHP DateTime objects rather than having to convert them to strings.

With this PR, ant DateTime objects in pickerOptions are converted to strings in a standard format that is understood by parseDate() in JavaScript.