automatically handle DateTime