date-time-picker icon indicating copy to clipboard operation
date-time-picker copied to clipboard

How to show seconds in input field

Open hemmoleg opened this issue 5 years ago • 2 comments

Hey,

I use this in an angular form with ngModel and name. So when I add the [showSecondsTimer]="true" to the owl-date-time I can properly select the seconds of the datetime and the change is also reflected in the data. So far so good. However the input field where the owl-date-time component is attached to doesnt show the seconds value. So how do I also show the seconds value there? I already tried e.input.value += ":" + new Date(e.value).getSeconds(); in an dateTimeChange listener, but it doesnt change the visible value at all.

hemmoleg avatar Sep 16 '19 14:09 hemmoleg

Hello, Bro. Did you solve that.

reng99 avatar Mar 23 '22 06:03 reng99

here is the way. I just try it, and got second show. show-seconds

reng99 avatar Mar 23 '22 06:03 reng99