A smart date input directive that uses the Writer API to parse natural language dates.
Works only on Chrome. You need to enable the Writer API.
ng build @ngxpert/smart-date-inputng serveFor single date input:
<input
type="text"
smartDateInput
(smartDateInputResponseReceived)="onResponseReceivedForSingleDate($event)"
/>For date range input:
<input
type="text"
smartDateInput
[smartDateInputIsRange]="true"
(smartDateInputResponseReceived)="onResponseReceivedForDateRange($event)"
/>Checkout src/app/app.html for more details.