add bincenter, improve date and integer binning