extended the datepicker control with an example in wpcms-main.php