Datepicker api

fix mudule, add docs