eternicode/bootstrap-datepicker — pull request #194 by coopernurse (2012-09-25 16:11:47+00:00)
Title: Add getDate() / setDate() calls to Datepicker prototype

Hi there,

In my app I'd like to access "this.date" from the Datepicker so that the actual Javascript date can be used to re-format dates for submission to the server / etc.

Usage looks something like:

// set a default date
$el.find(selector).data('datepicker').setDate(date);

// observe changes
$el.find(selector).change(function(e) {
var date = $(e.target).data('datepicker').getDate();
// do something with date
}

Would love to get this patch upstream. thoughts?

cheers

-- James