Return the number between current date and selected date in datepicker