<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Using JQuery DatePicker</title> <link rel="stylesheet" href="jquery-ui.css" /> <script language="javascript" src="jquery-1.5.1.min.js"></script> <script language="javascript" src="jquery-ui-1.8.10.custom.min.js"></script> <script> $(function() { $("#trandate" ).datepicker( { dateFormat: 'dd-M-yy', showAnim: 'slide', changeMonth: true, changeYear: true, yearRange: '1990:2020' } ); }); function show() { alert( $("#trandate").val()); } </script> </head> <body> <h2>Using JQuery DatePicker</h2> Enter Transaction Date : <input type="text" id="trandate"/> <p/> <input type="button" value="Process" onclick="show()" /> </body> </html>