Search
DateTimePicker.interval Property
See Also
 






Gets or sets the time interval.

Namespace: MindFusion.Common.UI
File: DateTimePicker.js

 Syntax

JavaScript  Copy Code

get interval() {}

 Property Value

Number. The time interval in milliseconds.

 Example

The following code creates a new DateTimePicker using an HTML div element with an id "date_picker". The dateTimePicker advances with one day and displays the date as "2/March". The interval between cells is 1 hour:

JavaScript  Copy Code

var u = MindFusion.Common.UI;

var dateTimePicker = new ui.DateTimePicker(document.getElementById("date_picker"));
//advance for 1 day
dateTimePicker.advance(0, 0, 1);
dateTimePicker.autoComplete = true;
dateTimePicker.datePartSelect = true;
dateTimePicker.format = "d/MMMM";
//1 hour in milliseconds
dateTimePicker.interval = 3600000;

 See Also