Use public datepicker determination function.