[datepicker] using setDate to set highlighted day
I am declaring my datepicker on my page with the following code:
- $('#datepicker').datepicker({
- inline: true,
- dateFormat: 'yy-mm-dd',
- onSelect: function(dateText, inst) { popPicker(dateText); fetchTeamCalls(dateText, currentProspect); }
});
And it works fine like that except later in the page I'd like to change the day it is declaring as "today". it defaults to the current day perfectly but I need to change the current day for some overseas users and the following attempts to change it aren't doing anything for me.
$('#datepicker').datepicker( 'setDate' , '2010-03-04' );
$('#datepicker').datepicker( 'setDate' , +1 );
Am hoping someone can see what I am doing wrong and can steer me in the correct direction. Basically, I would like to set the "today" date later in the page load.