@binarykits/ngx-mask-date

Extend the ngx-mask so the user input/fomrcontrol formats can be different

Usage no npm install needed!

<script type="module">
  import binarykitsNgxMaskDate from 'https://cdn.skypack.dev/@binarykits/ngx-mask-date';
</script>

README

ngx-mask-date

Installing

npm install @binarykits/ngx-mask-date

Usage

This directive extends ngx-mask which allows input and formControl date values having different formats:

  • Attribute binding/INPUT inherits from ngx-mask
  • Uses Angular's ControlValueAccessor to bridige between input and formControl values
  • Follow dayjs formatting

Demo site

Demo.