datepicker, version calculation