extending datepicker plugin

extending datepicker plugin


Hi,
How do I extend the datepicker plugin?
I've written a time extension, making it possible to also choose the
time next to the date (very much like here: http://www.dynarch.com/demos/jscalendar/
), through an extra included js file. Although it works nicely for me,
it involved rewriting several datepicker functions for a few lines of
change. Also, I couldn't extend the datepickerInstance function (since
it's lazy loaded?) so I had to overwrite the datepicker constructor,
and extend the Instance after it got loaded. meh.
I can believe there is a much better way to do it, so Datepicker
author or friendly stranger, please enlighten me!