Time Format in EJ 1 Angular timepicker (TimePicker)
13 Sep 2017 / 1 minute to read
TimePicker widget provides you an option to change the time format.
Steps to change Time Format of TimePicker widget
The following steps explains you to change the time format for the TimePicker.
In the HTML page, add a <input> element to configure TimePicker widget.
<div align="center">
<input type="text" ej-timepicker [(ngModel)]="value" timeFormat="h:mm:ss tt"/>
</div>
import { Component } from '@angular/core';
@Component({
selector: 'ej-app',
templateUrl: './default.component.html'
})
export class DefaultComponent {
}
Execute the above code to render the following output.
Was this page helpful?
Yes
No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page