Skip to content
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

MaskService.toMask with type 'datetime' #104

Closed
StanislavVoronov opened this issue Oct 16, 2018 · 1 comment
Closed

MaskService.toMask with type 'datetime' #104

StanislavVoronov opened this issue Oct 16, 2018 · 1 comment

Comments

@StanislavVoronov
Copy link

I try to get datetime formatted string
I use MaskService.toMask('datetime', '10-10-2018', { format: 'YYYY-MM-DD' }));
and get 101-0-20.
What do I make wrong?

@bhrott
Copy link
Owner

bhrott commented Oct 19, 2018

Hi, this function does not understand and convert dates, just mask the value you passed.
The format is for validation methods.

To work with dates and format a value, use a third part lib like momentjs.

@bhrott bhrott closed this as completed Oct 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants