/maskitoDate to create a mask for date input. Use maskitoParseDate to get date from masked string.
Use maskitoStringifyDate to get the masked string from date.
import {maskitoParseDate, maskitoStringifyDate, MaskitoDateParams} from '@maskito/kit';
const params: MaskitoDateParams = {
mode: 'dd/mm/yyyy',
separator: '/', // default is '.'
};
maskitoParseDate('05/02/2004', params); // returns Date object
maskitoStringifyDate(new Date('2004-02-05'), params); // '05/02/2004'
mode and separator properties to get a mask with a locale specific representation of dates. locale option of maskitoDate to automatically derive mode and separator from Intl.DateTimeFormat for the given locale. min and max allow you to set the earliest and the latest available dates. They accept native Date .