Skip to content

DateTime ​

Combined date and time picker.

When to Use ​

Use when users need to select both date and time.

Basic Usage ​

Click the input to open the panel. Select date and time. Format YYYY-MM-DD HH:mm.

vue

<TDateTime v-model="dt" placeholder="Select date & time" />

Date Only ​

Set :enable-time="false" to hide the time section.

vue

<TDateTime :enable-time="false" placeholder="Date only" />

Fixed Time ​

Set fixed-time="09:00" to lock the time, only date is adjustable.

vue

<TDateTime fixed-time="09:00" placeholder="Time fixed at 09:00" />

Minute Step ​

Control the minute increment with minute-step.

vue

<TDateTime :minute-step="15" placeholder="15 min step" />

Sizes ​

Supports sm, default, and lg.

vue

<TDateTime size="sm" placeholder="Small" />
<TDateTime placeholder="Default" />
<TDateTime size="lg" placeholder="Large" />

Clearable ​

vue

<TDateTime :model-value="'2026-06-01 14:30'" clearable />

With Seconds ​

Set show-seconds to display the seconds column, supporting YYYY-MM-DD HH:mm:ss format.

vue

<TDateTime show-seconds placeholder="Select with seconds" />

API ​

TDateTime Props ​

PropDescriptionTypeDefault
model-valueValue (v-model, format YYYY-MM-DD HH:mm)string''
placeholderPlaceholderstring'Select date & time'
disabledDisabledbooleanfalse
sizeSize'sm' | 'lg'undefined
clearableShow clear buttonbooleanfalse
enable-timeEnable time selectionbooleantrue
fixed-timeFixed time (e.g. "09:00")stringundefined
minMinimum datestringundefined
maxMaximum datestringundefined
disabled-dateDisabled date function(date: string) => booleanundefined
minute-stepMinute stepnumber5
show-secondsShow seconds columnbooleanfalse

TDateTime Events ​

EventDescriptionParameters
update:model-valueValue changed(value: string) => void
changeUser confirmed selection(value: string) => void