Skip to content

Angular Date Mask - an input date mask directive - it was built using angular v8 but it should work with v2+

License

Notifications You must be signed in to change notification settings

bojidaryovchev/angular-date-mask

Repository files navigation

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)

About

Angular Date Mask - an input date mask directive - it was built using angular v8 but it should work with v2+

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published