dss-date-format
v0.0.4
Published
The `DTpicker` directive automatically **formats dates in an `<input type="date">` field**. It ensures reliable date handling when binding values through `[(ngModel)]`.
Readme
Date Picker (DTpicker) Directive
The DTpicker directive automatically formats dates in an <input type="date"> field.
It ensures reliable date handling when binding values through [(ngModel)].
📦 Installation
Install the package from npm:
npm install dss-date-format
import { NgModule } from '@angular/core';
import { dateFormat } from 'your-dtpicker';
@NgModule({
declarations: [],
imports: [dateFormat],
exports: [dateFormat]
})
export class SharedModule {}
#syntax
```html
<input type="date" [(ngModel)]="entity.dob" DTpicker />