On my current project I use bootstrap to make the whole app responsive.
For some forms I needed a date and time picker, so my first stop is Mark Leusink’s Bootstrap4XPages demo website, where I discovered a date and time picker.
After some trying to get the styling right, I turned to google to find me an alternative.
And I found an alternative, bootstrap-datetimepicker. It contains a date and time picker.
Implement it in a XPage.
I have created 2 custom controls, 1 for a time picker and 1 for a date picker, and added a few properties to make it reusable.
The code for the date picker looks like,
To trigger the datetimepicker code, there is only a few line of code needed.