Passing DatePicker a Date Object
Hi I am trying to display in a DatePIcker UI component a date that I previously saved in local storage.
What I was doing was storing it as UTC milliseconds and creating a date object as:
var in_date=new Date(stored_UTC);
then using date methods to get to a string like dd/mm/yyyy and trying to input that string into the datepicker.
Is there a better way, i.e. can I just pass date object directly to datepicker?