refactoring, reuse split_date logic