Datepicker is a plugin that adds the function of selecting time without the necessity of using custom JavaScript code. See the examples.
Detailed documentation and more examples you can find in our Bootstrap Datepicker Docs
Basic example
Datepicker inline version
Datepicker custom toggle icon
You can customize the toggle icon by adding a toggle button template to the component HTML.