I need to change the default display of currentText
property in jquery datepicker from \"Today\" to \"Today: Septmeber 14, 2012\". So the question is does the d
Yes, the currentText
is what you are looking for.
$('#txtSelectedDate').datepicker({
showButtonPanel: true,
currentText: "Today:" + $.datepicker.formatDate('MM dd, yy', new Date())
});
DEMO
If you need to initialize the datepicker with current date, you could use:
$(".selector").datepicker( "option", "gotoCurrent", true );
And of course you have the dateFormat
which take a format defined here
If you need to initialize the datepicker with current date, you could use:
$(".selector").datepicker( "option", "gotoCurrent", true );