The DateEdit JavaScript class. A simplified version of the DateEdit Qt widget.
myDialog.title = “DateEdit Example”;
var min = new Date( 2010, 1, 1 );
var max = new Date( 2019, 12, 31 );
var now = new Date();
userInput.date = now;
userInput.minimum = min;
userInput.maximum = max;
userInput.label = “Pick a
date from
this decade: “;
myDialog.add( userInput );
if ( myDialog.exec() )
{
var inputDate = userInput.date;
var day = inputDate.getDate();
var month = inputDate.getMonth() + 1;
var year = inputDate.getFullYear();
}