Date Time Range Picker

Built based on @vuepic/vue-datepicker

Basic usage

Bind a variable to v-model.

Range Picker

Range picker mode

Preset Ranges

When configured, it will provide a sidebar with configured range that user can select

(range prop must be enabled)

Error and Disabled States

error message

Inline Mode

Removes the input field and places the calendar in your parent component

Attributes

Table Title

AttributeDescriptionTypeAccepted ValuesDefault
model-value / v-modelv-model binding Single picker: Date | string. Range picker: [Date, Date] | [string | string] null
applyButtonText for Apply Buttonstring-Apply
autoApplyIf set to true, clicking on a date value will automatically select the valueBooleantrue | falsefalse
enableSecondsEnable seconds in the time pickerBooleantrue | falsefalse
enableTimePickerEnable or disable time pickerBooleantrue | falsefalse
errorText of errorstring--
disabledWhether the component is disabledbooleanfalse
formatFormat the value of the date(s) in the input field (Ex: dd-MM-yyyy HH:mm:ss)string | (params: Date | Date[]) => stringSingle picker: 'MM/dd/yyyy HH:mm' | Range picker: 'MM/dd/yyyy HH:mm - MM/dd/yyyy HH:mm'
idUid for input (set id like 'dp-input-{uid}')string--
inlineRemoves the input field and places the calendar in your parent componentBooleantrue | falsefalse
labelLabel textstring--
label-iconLabel iconstring--
localeSet datepicker locale. Datepicker will use built in javascript locale formatter to extract month and weekday namesstring-en-US
maxDateAll dates after the given date will be disabledDate | string-null
maxWidthmax-width propertystring-100%
minDateAll dates before the given date will be disabledDate | string-null
placeholderPlaceholderstring--
presetRangesWhen configured, it will provide a sidebar with configured range that user can select (range prop must be enabled)Array [{ label: string; range: Date[] | string[] }]-[]
rangeRange picker modeBooleantrue | falsefalse
requiredAdding (*) to labelbooleanfalse
teleportSet teleport targetstring-body
utcOutput date(s) will be in UTC timezone string. You can use this if you gather dates from different timezones and want to send the date directly to the serverBooleantrue | falsefalse
weekStartDay from which the week starts. 0-6, 0 is Sunday, 6 is Saturdaynumber | string-1
hideBorderTo hide the border of calendarBooleantrue | falsefalse