-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🚀 - MaskitoDateMode
supports dd/mm
& mm/dd
formats
#1827
Comments
MaskitoDateMode
supports dd/mm
& mm/dd
formats
maskito/projects/kit/src/lib/types/date-mode.ts Lines 1 to 8 in 31a371a
|
Hey! Can I take this one? |
Of course ❤ |
Sorry I don't want to hijack this feature but do you think a format like d/m/yy or m/d/yy will ever be supported? |
Our team doesn't have plans to implement |
Which package(s) are relevant/related to the feature request?
@maskito/kit
Description
maskitoDateOptionsGenerator
function do not allow dd/mm and mm/dd date formats.Because function
createMinMaxDatePostprocessor
has defaultmin
date set tonew Date('0001-01-01')
If user don't input year then
clamp
function set the date tomin
date and return12/31
.To allow this, we can remove the
DEFAULT_MIN_DATE
frommin
parameter in functioncreateMinMaxDatePostprocessor
.and then return a date if
min
isundefined
const clampedDate = min ? clamp(date, min, max) : date;
maskito/projects/kit/src/lib/processors/min-max-date-postprocessor.ts
Line 52 in c81cda5
The text was updated successfully, but these errors were encountered: