Skip to main content
Use this API to show a date/time picker for user selection.

Parameters

PropertyTypeRequiredDescription
formatStringNoFormat: yyyy-MM-dd, HH:mm, yyyy-MM-dd HH:mm, yyyy-MM, yyyy
currentDateStringNoInitial selected date
startDateStringNoMinimum selectable date
endDateStringNoMaximum selectable date
successFunctionNoCallback with selected date
failFunctionNoCallback on failure
completeFunctionNoCallback that always executes

Success Callback

PropertyTypeDescription
dateStringSelected date in specified format

Code Example

my.datePicker({
  format: 'yyyy-MM-dd',
  currentDate: '2024-01-15',
  startDate: '2024-01-01',
  endDate: '2024-12-31',
  success: (res) => {
    console.log('Selected:', res.date);
  }
});

my.multiLevelSelect

Multi-level selector