I am currently working with the following JavaScript code:
var date = record.get('Date'),
day = date.getDate(),
month = date.getMonth(),
year = date.getFullYear();
var formattedDate = year + '-' + month + '-' + day;
datePicker.selectedDates = {
formattedDate: formattedDate
};
At this moment, the value of selectedDates
is: formattedDate: '2014-7-27'
However, I would like the result to be
'2014-7-27' : '2014-7-27'
Any suggestions on how to achieve this?