/

DateTime KIT

Description and examples API
Use maskitoDateTimeOptionsGenerator to create a mask to input both date and time.
Despite the name of the mask, element's raw value is still string.

Use maskitoParseDateTime to get date from masked string.

Use maskitoStringifyDateTime to get the masked string from date.

    
    

Localization

#

Use dateMode , timeMode and dateSeparator parameters to get a mask with a locale specific representation of dates.

Custom separator between date and time

#

Use dateTimeSeparator parameter to configure separator between date and time strings.

Min and max

#

Parameters min and max allow to set the earliest and the latest available dates. They accept native Date .

Time segments stepping via arrows

#

Property timeStep allows you to increment / decrement time segments by pressing ArrowUp / ArrowDown .

Use step === 0 (default value) to disable this feature.

AM / PM

#

Any timeMode ending with AA is 12-hour time format with meridiem part.