'setValue' is replaced by 'setDate'.
Using a string as input for setDate can be tricky. It must match dateformat, otherwise you may get unexpected results. It is safer to create a "new date (y, m, d)" from your input, for example. new date (2015,3,10) for "April 10, 2015." It will always work.
When using a date representation in seconds, for example. 1428659901, then use the new date (value * 1000). ' Note that the datepicker will use any value here, but will only show the selected date on the calendar if the hours, minutes and seconds are 0. It took some time to figure this out.
source share