Setting CSS class to defaultDate in datepicker

Setting CSS class to defaultDate in datepicker

Right now, the default functionality of datepicker is to set the hover class to whatever defaultDate has been set to, and then remove the hover class when the user mouses over another date in the datepicker. The issue is that when using two datepickers for the purpose of establishing a range of dates, I want to add a way to give context to the other datepicker about what the other date was.

For example, if in the first datepicker instance the user selects 5/9/2010, then when the user selects the second datepicker instance, I'd like for 5/9/2010 to be highlighted and stay highlighted until they select a date for that datepicker instance. This way there is always context around what the other date is. I figure the best way to do this is to apply a class to whatever the defaultDate is, but I'm not sure the best way to do it.

Does anyone know of a good way to do this, or have another solution for the problem? I've been trying and failing for some time now.

Thanks.