When I click the today button, I want the time in the form above to always display 23:59. What should I do
巴扎黑2017-05-19 10:45:34
To solve this problem, you can try to change your thinking. Instead of adjusting the date control, you can focus on how to process the value of the input box twice.
Listen to the change event of the input box, obtain the time string and convert it back to the timestamp for processing; then convert the timestamp to the format of year, month and day, and then splice it into 23:59 yourself. Hope it helps you.