based on jqueryui datepicker