Angular this demonstrates 24-hours time format of the TimePicker.
Loading...

Angular TimePicker: 24-hour Format

This demonstrates 24-hours time format of the TimePicker.

A live Angular example of jqxTimePicker, the jQWidgets TimePicker component, with its complete source code below. It is one of 4 jqxTimePicker demos for Angular.

jqxTimePicker API used in this demo

Source code

To run it in your own app, install the package with npm install jqwidgets-ng, add these files to a standalone Angular CLI app, and add jqx.base.css and a theme to the styles in angular.json.

app.ts

import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { jqxTimePickerModule } from 'jqwidgets-ng/jqxtimepicker';

@Component({
    imports: [CommonModule, FormsModule, jqxTimePickerModule],
    selector: 'app-root',
    templateUrl: './app.html'
})

export class App {
    format: string = "24-hour";
}

app.html

<jqxTimePicker [width]="400" [format]="format"></jqxTimePicker>

Learn more

More Angular TimePicker demos