datepicker function payment