more type consistency in date utils