Combine datepicker and timepicker values with ngx-bootstrap
Both the values of Datepicker and Timepicker will be of type Date.
So you can simply combine their values before sending the result to the server.
For example, assuming that you stored the value of Datepicker inside a date
variable and the Timepicker inside the time
variable, you can do the following:
date.setHours(time.getHours(), time.getMinutes(), time.getSeconds());
now date
contains both the date from the Datepicker and the time frome the Timepicker, so you can now send date
to the server (in whatever format you need).