All Components

Incremental Steps

By default, the DateInput increments or decrements each part of its date values by one step.

To change the default setup, use the steps property.

The available options are:

  • year: Number—Controls the incremental step of the year value.
  • month: Number—Controls the incremental step of the month value.
  • day: Number—Controls the incremental step of the day value.
  • hour: Number—Controls the incremental step of the hour value.
  • minute: Number—Controls the incremental step of the minute value.
  • second: Number—Controls the incremental step of the second value.
@Component({
    selector: 'my-app',
    template: `
        <div class="example-wrapper">
            <p>Select a date:</p>
            <kendo-dateinput
                [format]="'MM/dd/yyyy hh:mm a'"
                [steps]="steps"
                [value]="value"
            ></kendo-dateinput>
            <p>(↑ to increment and ↓ to decrement the value)</p>
        </div>
    `
})

class AppComponent {
    public steps: any = { year: 10, day: 5, hour: 2, minute: 15 };
    public value: Date = new Date(2000, 2, 10, 10, 30);
}
In this article