I’ve been trying to get this to work and am stumped. I’m trying to change the day value of a date selected by the datepicker. So, for example, if the user selected ‘5/15/2011’ as the date, then I want to change it to ‘5/1/2011’. I currently have the following in the page.
$('#<%= TextStartDate.ClientID %>').datepicker({ maxDate: "+0D", minDate: "-24M" });
Any help would greatly be appreciated.
Set dateFormat to
m/1/yyThis will replace the value for the day with 1 and format the date with the US format in your question.
See: http://jsfiddle.net/HSzJ9/3/