Skip to Content
0

Set Time in DateTimePicker

Oct 27, 2017 at 06:33 AM

30

avatar image
Former Member

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Jose Muñoz Herrera Oct 27, 2017 at 07:21 AM
1

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thanks Jose. That worked! :)

0