You can add a recordset to the page to get the mindate and maxdate and then use the bindings panel to set the value on the page from the recordset in place of the manual code you have already added.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.