Nerian / bootstrap-datepicker-rails

A Datepicker for Twitter Bootstrap, integrated with Rails assets pipeline
MIT License
649 stars 182 forks source link

Time correction? #142

Closed KemikalGeneral closed 5 years ago

KemikalGeneral commented 6 years ago

Hi,

I was just wondering if there's a way of either disabling the default time element of the date, or, setting it to a new one?

For example, if i chose a date, it comes with the time defaulted to 00:00:00, but can i either just have the date 2000-01-01 or, set the time manually, 2000-01-01 02:00:00

Thanks.

Nerian commented 6 years ago

Sure you can. The datepicker takes the default value from the val attribute of the input.