glad/glDatePicker — pull request #18 by steve228uk (2012-10-03 18:25:16+00:00)
Title: Allow array to be passed through to selected dates

I recently adapted glDatePicker for a project I was working on to show multiple selected dates for a booking calendar.

With the code attached you can pass an array through to selected date.

var dates = new Array();
dates[0] = new Date('October 05, 2012');
dates[1] = new Date('October 06, 2012');
dates[2] = new Date('October 07, 2012');

$('#calendar').glDatePicker("setSelectedDate", dates);