-
Notifications
You must be signed in to change notification settings - Fork 32
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
🚀 - Date
add support for multi-character separator
#353
Comments
@sysmat you can use parameter import {maskitoDateOptionsGenerator} from '@maskito/kit';
const dateOptions = maskitoDateOptionsGenerator({
mode: 'dd/mm/yyyy',
separator: '.'
}); // dd.mm.yyyy |
I see that you also need At present time,
Expected behaviour: const dateOptions = maskitoDateOptionsGenerator({
mode: 'dd/mm/yyyy',
separator: '. ' // 2 characters
}); // dd. mm. yyyy |
Date
add support for multi-character separator
const today = new Date();
console.log(
new Intl.DateTimeFormat('sl-SI').format(today)
); // 29. 6. 2023 |
@nsbarsukov thx |
Is @KrollikRoddzer working on this? I was debugging this rn so not sure if I continue or wait it |
@wladpaiva I will re-assign this issue to you! |
@nsbarsukov, @sysmat it can be already done https://stackblitz.com/edit/stackblitz-starters-nkq2rt?file=date-mask.spec.js |
@kmisha Unfortunately, it is not yet supported( Try to enter any complete date string here: |
Oh, I see. May I try to fix it? |
@kmisha thx, nice |
Of course! |
Which package(s) are relevant/related to the feature request?
@maskito/kit
Description
export declare type MaskitoDateMode = 'dd/mm/yyyy' | 'mm/dd/yyyy' | 'mm/yy' | 'yyyy/mm/dd';
The text was updated successfully, but these errors were encountered: