Nativescript datepicker - expected value


Hello guys I have quick question, since there is no info, in the docs on the website …
What does datepicker expect at initialization,
DateObject like new Date(), or ISO string- new Date().toIsoString(), or something else ???
also can I initialize Datepicker like
<DatePicker date = "{{ date }}" />


It should be a JS Date object indeed. I guess that binding should work, although for my particular usage I set the date in the <DatePicker loaded=".."> event.


Thanx, can you please share example of code how you are doing it,
because to it seems when a pass the Date, it doesnt trigger or update Model,
when Im setting it to todays date :slight_smile:


Have a Playground. This one has 2 ways to bind the dates: