https://github.com/bojidaryovchev/angular-date-mask
Angular Date Mask - an input date mask directive - it was built using angular v8 but it should work with v2+
https://github.com/bojidaryovchev/angular-date-mask
angular angular-date-mask angular8 date-mask
Last synced: 3 months ago
JSON representation
Angular Date Mask - an input date mask directive - it was built using angular v8 but it should work with v2+
- Host: GitHub
- URL: https://github.com/bojidaryovchev/angular-date-mask
- Owner: bojidaryovchev
- License: mit
- Created: 2020-01-10T17:31:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T13:38:16.000Z (over 3 years ago)
- Last Synced: 2025-04-03T19:44:36.379Z (about 1 year ago)
- Topics: angular, angular-date-mask, angular8, date-mask
- Language: TypeScript
- Homepage:
- Size: 1.66 MB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ngdatemask (Angular Date Mask)
ngdatemask - an input date mask directive to control input of dates
it supports dd, MM, yyyy as formats
it makes sure the day is between 1 and 31, the month between 1 and 12 and the year larger than 1895
it wont allow you to enter invalid date/month/year
it does not autofix dates, you have to handle that yourself (e.g. if one enters 31/02/2020 it wont change it)
NOTE: in order to get noticed when the mask is valid and get the value you can bind to the (change) event - it will be triggered when the mask becomes valid (the definition of valid in our case is for all the formats to have reached their lengths)