Accessing the Date

You can access the Date in two ways:

1. As a Javascript Date Object

You can add a two way binding on clrDate to access the date value. The benefit of using this approach is that you can interact with the Date picker directly using Javascript Date objects which would avoid converting values from string to date and vice versa on the application side.

2. As a date string (in current locale format)
a. Template Driven Forms

Template Driven Forms use the ngModel directive to create a binding between the model and the input field.

b. Reactive Forms

Reactive Forms use FormControls to create the binding between the model and the input field.

We recommend that you either access the date as a string or as a javascript date object from the date picker. Using both at the same time might cause unexpected behavior.