cancel
Showing results for 
Search instead for 
Did you mean: 

Set Time in DateTimePicker

0 Kudos

I use DateTimePicker in my application. The time picker by default shows the system time.

In the above image, the time that I've set using setDateValue / setValue appears correctly in the input field, but the time picker still begins from the system time. How do I make it begin from the time that I specify?

Accepted Solutions (1)

Accepted Solutions (1)

JoseMunoz
Active Participant

Hi,

You can try that:

new sap.m.DateTimePicker("DTP4", { dateValue: new Date(2016, 1, 16, 12, 50, 30), displayFormat: "yyyy-MM-dd, HH:mm:ss", editable: false, change: handleChange })

Regards

0 Kudos

Thanks Jose. That worked! 🙂

Answers (0)