further simplify use of datetime