It is still in the experiment stage and the running effect is as follows:
It uses the standard form input instead of Ext. formpanel.
If you want to use the ext date selector in your form, refer to this
EXT datepicker is integrated with the input text box of a common form.
The complete code is provided here for your reference.
<% @ Page contenttype = "text/html; charset = UTF-8 "pageencoding =" UTF-8 "%> <br/> <HTML> <br/> <pead> <br/> <title> test the separate use of datepicker in extjs- java century network, www.java2000.net, old zizhu produced </title> <br/> <LINK rel = "stylesheet" type = "text/CSS" href = "JS/resources/CSS/ext-all.css" mce_href = "JS /resources/CSS/ext-all.css "/> <br/> <LINK rel =" stylesheet "type =" text/CSS "href =" CSS/ext-patch.css "mce_href =" CSS/ext-patch.css "/> <br/> <MCE: Script Type = "text/JavaScript" src = "JS/prototype. JS "mce_src =" JS/prototype. JS "> </MCE: SCRIPT> <br/> <MCE: Script Type =" text/JavaScript "src =" JS/adapter/prototype/scriptaculous. JS? Load = effects "mce_src =" JS/adapter/prototype/scriptaculous. js? Load = effects "> </MCE: SCRIPT> <br/> <MCE: script Type = "text/JavaScript" src = "JS/adapter/prototype/ext-prototype-adapter.js" mce_src = "JS/adapter/prototype/ext-prototype-adapter.js"> </MCE: SCRIPT> <br/> <MCE: Script Type = "text/JavaScript" src = "javascript/ext-all.js" mce_src = "JS/ext-all.js"> </MCE: SCRIPT> <br/> <MCE: Script Type = "text/JavaScript"> <! -- <Br/> var datesign; <br/> var datesignshow; <br/> Ext. onready (function () {<br/> datesign = new Ext. datepicker ({<br/> applyto: "datesign", <br/> renderto: "datesign", <br/> hidden: "true", <br/> Format: "Y-m-d" <br/>}); <br/> datesign. on ("select", function (SRC, date) {<br/> $ ("datesign "). value = date. format ('Y-m-d'); <br/> datesign. hide (); <br/> datesignshow = false; <br/>}); <br/> function showextcal () {<br/> If (datesignshow) {<br/> datesign. hide (); <br/> datesignshow = false; <br/>} else {<br/> datesign. setvalue (date. parsedate ($ ("datesign "). value, 'Y-m-d'); <br/> datesign. show (); <br/> datesignshow = true; <br/>}< br/> // --> </MCE: SCRIPT> <br/> </pead> <br/> <body id = "defaultuser"> <br/> <input type = "text" name = "datesign" id = "datesign" value = "2009-01-07" onclick = "showextcal () "/> <br/> </body> <br/> </ptml>