Currently, I am working with a date input and storing the selected date in a Date
object. The output of the date object looks like 2021-03-16 00:00:00
. However, I want to update this date object's time part to reflect the current time.
The desired output that I am aiming for is 2021-03-16 15:56:00
. Can you advise me on how to achieve this?