JQuery Override Datepicker to Return Today’s Date Example

How to override the JQuery Datepicker to return today’s date

JQuery Override Datepicker To Return Today's DateI support an ASP.net application that has multiple pages with fields that prompt for a date. All of our date input fields use the JQuery Datepicker calendar pop-up control to allow the user to select a date from the calendar.

The datepicker pop-up control can be defined to show several options (reference: JQuery Datepicker for details). One of those options is a button for today. When the today button is clicked the calendar control re-positions to the month containing today’s date. Many users wanted the today button to select and return today’s date to the date input field. This can be easily accomplished with a simple override.

Paste the following script in each page that loads the JQuery datepicker control, or better yet load it globally.
Continue reading “JQuery Override Datepicker to Return Today’s Date Example”