simplify date2index call